Schachcomputer.info Community

Zurück   Schachcomputer.info Community > Computerschach / Computer Chess: > Mess Emu & andere Emulationen / Mess Emu and other Emulations


Antwort
 
Themen-Optionen Ansicht

  #1  
Alt 08.03.2024, 17:34
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.945
Abgegebene Danke: 605
Erhielt 7.336 Danke für 1.642 Beiträge
Aktivitäten Langlebigkeit
7/20 15/20
Heute Beiträge
1/3 sssss2945
AW: Mess Emulator für diverse Schachcomputer ist fertig!

Hi hap,

in many of your device drivers (especially with SVG screens) you are using screen.set_size(..).
Is it possible to change this screen size to smaller values when starting an engine (e.g. in machine.cpp)?

I would need this when running the engine in WinBoard or Arena, because usually your screen sizes are so big, that the option -nomax doesn't really change anything (i.e. the engine window is still maximized).

Regards,
Franz
__________________
Meine Webseite: https://fhub.jimdofree.com/
Mit Zitat antworten
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag:
kamoj (08.03.2024)
  #2  
Alt 08.03.2024, 18:17
hap hap ist offline
Resurrection
 
Registriert seit: 27.07.2019
Beiträge: 601
Abgegebene Danke: 222
Erhielt 2.323 Danke für 417 Beiträge
Aktivitäten Langlebigkeit
0/20 6/20
Heute Beiträge
0/3 ssssss601
Re: Mess Emulator für diverse Schachcomputer ist fertig!

Ok I tried (see below), but resizing the screen after creating it is too late for -nomax (it determines window size before the first possible place the screen can be resized dynamically).

If you want to force a smaller window:
mame sdiamond -resolution 640x480

However, the user won't be able to make the window larger.

Code:
//(make sure to #include screen.h)

screen_device_enumerator screen_iter(root_device());
for (screen_device &screen : screen_iter)
{
	if (screen.screen_type() == SCREEN_TYPE_SVG)
	{
		int new_width = screen.width() / 4;
		int new_height = screen.height() / 4;
		screen.configure(new_width, new_height, rectangle(0 , new_width - 1 , 0 , new_height - 1), screen.frame_period().as_attoseconds());
	}
}
Mit Zitat antworten
Folgende 3 Benutzer sagen Danke zu hap für den nützlichen Beitrag:
fhub (08.03.2024), kamoj (08.03.2024), Mark 1 (08.03.2024)
Antwort


Forumregeln
Du bist nicht berechtigt, neue Themen zu erstellen.
Du bist nicht berechtigt, auf Beiträge zu antworten.
Du bist nicht berechtigt, Anhänge hochzuladen.
Du bist nicht berechtigt, deine Beiträge zu bearbeiten.

BB code ist An
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist An.

Gehe zu

Ähnliche Themen
Thema Erstellt von Forum Antworten Letzter Beitrag
Info: Mephisto Emulator für den Mac fertig RolandLangfeld Die ganze Welt der Schachcomputer / World of chess computers 3 09.09.2007 22:56


Alle Zeitangaben in WEZ +2. Es ist jetzt 12:08 Uhr.



Powered by vBulletin (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©Schachcomputer.info