diff --git a/kivy/core/window/_window_sdl2.pyx b/kivy/core/window/_window_sdl2.pyx index 8893d001e..42558191a 100644 --- a/kivy/core/window/_window_sdl2.pyx +++ b/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)