mirror of https://github.com/kivy/kivy.git
Merge pull request #3181 from kived/sdl2-window-size-fix
fix reported window size
This commit is contained in:
commit
f5d24e39b5
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue