summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c7
-rw-r--r--src/ui/window.h1
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
1400iInt2 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
1400iBool isFullscreen_Window(const iWindow *d) { 1406iBool isFullscreen_Window(const iWindow *d) {
1401 return snap_Window(d) == fullscreen_WindowSnap; 1407 return snap_Window(d) == fullscreen_WindowSnap;
1402} 1408}
1403 1409
1404static void invalidate_Window_(iWindow *d) { 1410static 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);
93uint32_t id_Window (const iWindow *); 93uint32_t id_Window (const iWindow *);
94iInt2 rootSize_Window (const iWindow *); 94iInt2 rootSize_Window (const iWindow *);
95iInt2 visibleRootSize_Window (const iWindow *); /* may be obstructed by software keyboard */ 95iInt2 visibleRootSize_Window (const iWindow *); /* may be obstructed by software keyboard */
96iInt2 maxTextureSize_Window (const iWindow *);
96float uiScale_Window (const iWindow *); 97float uiScale_Window (const iWindow *);
97iInt2 coord_Window (const iWindow *, int x, int y); 98iInt2 coord_Window (const iWindow *, int x, int y);
98iInt2 mouseCoord_Window (const iWindow *); 99iInt2 mouseCoord_Window (const iWindow *);