mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01:00
iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629.
This commit is contained in:
parent
dce56ab9fa
commit
9b5811592d
@ -96,6 +96,8 @@ UIKit_GL_GetDrawableSize(_THIS, SDL_Window * window, int * w, int * h)
|
|||||||
if (h) {
|
if (h) {
|
||||||
*h = glview.backingHeight;
|
*h = glview.backingHeight;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
SDL_GetWindowSize(window, w, h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user