Merge pull request #3181 from kived/sdl2-window-size-fix

fix reported window size
This commit is contained in:
dessant 2015-03-22 22:26:22 +02:00
commit f5d24e39b5
1 changed files with 5 additions and 6 deletions

View File

@ -92,12 +92,11 @@ cdef class _WindowSDL2Storage:
cdef SDL_DisplayMode mode
SDL_GetWindowDisplayMode(self.win, &mode)
IF USE_IOS:
cdef int w, h
SDL_GL_GetDrawableSize(self.win, &w, &h)
mode.w = w
mode.h = h
SDL_SetWindowDisplayMode(self.win, &mode)
cdef int w, h
SDL_GL_GetDrawableSize(self.win, &w, &h)
mode.w = w
mode.h = h
SDL_SetWindowDisplayMode(self.win, &mode)
SDL_JoystickOpen(0)