ChangeDisplaySettings

Jan Dvorak jan.dvorak at kraxnet.cz
Thu Mar 9 10:30:07 CST 2006


While trying to run Scratches game, the game tries to set fullscreen 
resolution but fails - heres the log:

trace:x11settings:X11DRV_EnumDisplaySettingsEx mode -1 (current) -- getting 
current mode (desktop)
trace:x11settings:X11DRV_EnumDisplaySettingsEx mode 0 -- 800x600x32bpp 
(desktop)
trace:x11settings:X11DRV_ChangeDisplaySettingsEx ((null),0x406bf9cc,
(nil),0x00000004,(nil))
trace:x11settings:X11DRV_ChangeDisplaySettingsEx flags=FULLSCREEN
trace:x11settings:X11DRV_ChangeDisplaySettingsEx 
DM_fields=BITSPERPEL,PELSWIDTH,PELSHEIGHT,DISPLAYFREQUENCY
trace:x11settings:X11DRV_ChangeDisplaySettingsEx width=0 height=0 bpp=32 
freq=0 (desktop)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found! 
(desktop)

it's the second game i encountered trying to do this (calling 
changedisplaysettings with PELSWIDTH and PELSHEIGHT masks set but setting the 
values of width and height itself to 0 ). It is buggy application ? Or some 
undocumented hack in winapi? Or error in wine ? And if it is, what can we do 
about it (as the games itself runs perfectly otherwise , just windowed ) ? 
Thanks.

JD



More information about the wine-devel mailing list