I'll see if I can include this change too in 1.2.3. I think there are more parts that require some more refactoring and test coverage. For now I am focussing on pyglet.media.
Rob Op zaterdag 2 mei 2015 11:06:45 UTC+2 schreef magu...@gmail.com: > > > I ran some more tests, it seems like _event_size() and > _recreate()/_create() were conflicting when setting window/fullscreen by > calling _update_view_location() twice, once in _create() and again in > _event_size(). Rather than removing the call to _update_view_location() in > _event_size(), I indented it to fall under the fullscreen check: > > @Win32EventHandler(WM_SIZE) > def _event_size(self, msg, wParam, lParam): > if not self._dc: > # Ignore window creation size event (appears for fullscreen > # only) -- we haven't got DC or HWND yet. > return None > > if wParam == SIZE_MINIMIZED: > # Minimized, not resized. > self._hidden = True > self.dispatch_event('on_hide') > return 0 > if self._hidden: > # Restored > self._hidden = False > self.dispatch_event('on_show') > w, h = self._get_location(lParam) > > if not self._fullscreen: > self._width, self._height = w, h > * self._update_view_location(self._width, self._height)* > > self._reset_exclusive_mouse_screen() > self.switch_to() > self.dispatch_event('on_resize', self._width, self._height) > return 0 > > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.