Commits

Anonymous committed e4c909e

Fix window not redrawing with AMD drivers when set visible

Comments (0)

Files changed (1)

pyglet/window/win32/__init__.py

                 SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW)
             self.dispatch_event('on_show')
             self.activate()
+            self.dispatch_event('on_resize', self._width, self._height)
         else:
             _user32.ShowWindow(self._hwnd, SW_HIDE)
             self.dispatch_event('on_hide')