Permalink
Browse files

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

fix reported window size
  • Loading branch information...
dessant committed Mar 22, 2015
2 parents 6eb1a8f + f55ef66 commit f5d24e39b5d1836bdfc16a0525523948b4d44e8d
Showing with 5 additions and 6 deletions.
  1. +5 −6 kivy/core/window/_window_sdl2.pyx
@@ -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)

0 comments on commit f5d24e3

Please sign in to comment.