diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 7 | ||||
-rw-r--r-- | src/ui/window.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 038d72af..3c362986 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1397,11 +1397,18 @@ SDL_Renderer *renderer_Window(const iWindow *d) { | |||
1397 | return d->render; | 1397 | return d->render; |
1398 | } | 1398 | } |
1399 | 1399 | ||
1400 | iInt2 maxTextureSize_Window(const iWindow *d) { | ||
1401 | SDL_RendererInfo info; | ||
1402 | SDL_GetRendererInfo(d->render, &info); | ||
1403 | return init_I2(info.max_texture_width, info.max_texture_height); | ||
1404 | } | ||
1405 | |||
1400 | iBool isFullscreen_Window(const iWindow *d) { | 1406 | iBool isFullscreen_Window(const iWindow *d) { |
1401 | return snap_Window(d) == fullscreen_WindowSnap; | 1407 | return snap_Window(d) == fullscreen_WindowSnap; |
1402 | } | 1408 | } |
1403 | 1409 | ||
1404 | static void invalidate_Window_(iWindow *d) { | 1410 | static void invalidate_Window_(iWindow *d) { |
1411 | iUnused(d); | ||
1405 | resetFonts_Text(); | 1412 | resetFonts_Text(); |
1406 | postCommand_App("theme.changed"); /* forces UI invalidation */ | 1413 | postCommand_App("theme.changed"); /* forces UI invalidation */ |
1407 | } | 1414 | } |
diff --git a/src/ui/window.h b/src/ui/window.h index 8bc9911c..9a70fdec 100644 --- a/src/ui/window.h +++ b/src/ui/window.h | |||
@@ -93,6 +93,7 @@ void setKeyboardHeight_Window(iWindow *, int height); | |||
93 | uint32_t id_Window (const iWindow *); | 93 | uint32_t id_Window (const iWindow *); |
94 | iInt2 rootSize_Window (const iWindow *); | 94 | iInt2 rootSize_Window (const iWindow *); |
95 | iInt2 visibleRootSize_Window (const iWindow *); /* may be obstructed by software keyboard */ | 95 | iInt2 visibleRootSize_Window (const iWindow *); /* may be obstructed by software keyboard */ |
96 | iInt2 maxTextureSize_Window (const iWindow *); | ||
96 | float uiScale_Window (const iWindow *); | 97 | float uiScale_Window (const iWindow *); |
97 | iInt2 coord_Window (const iWindow *, int x, int y); | 98 | iInt2 coord_Window (const iWindow *, int x, int y); |
98 | iInt2 mouseCoord_Window (const iWindow *); | 99 | iInt2 mouseCoord_Window (const iWindow *); |