On 3/23/2012 4:53 AM, Hello3171 wrote:
I updated with the code from issue 559, however, now when attempting to enter fullscreen mode the window simply freezes up.

I tracked the freeze occuring at Win32Screen:get_mode in pyglet/canvas/win32.py, specifically the "_user32..." line below

    def get_mode(self):
        mode = DEVMODE()
        mode.dmSize = sizeof(DEVMODE)
_user32.EnumDisplaySettingsW(self.get_device_name(), ENUM_CURRENT_SETTINGS, byref(mode))
        return Win32ScreenMode(self, mode)

At this point I don't know what to do.


In the patch for #510, one of the EnumDisplaySettingsW parameters is wrong. Line 143 in pyglet\libs\win32\__init__.py should be

_user32.EnumDisplaySettingsW.argtypes = [c_wchar_p, DWORD, POINTER(DEVMODE)]

Christoph

--
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to