summaryrefslogtreecommitdiff
path: root/src/app.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-08-29 15:52:06 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-08-29 15:53:41 +0300
commitfbad0cc670fc12f135af2a60f4af2aa9bd93cf9c (patch)
tree2100291c635de90389688533171d12fa6a52b8ed /src/app.h
parentf01530f64b1e3951e0239ac8d2000cef57e814ba (diff)
Fixed running under KMSDRM video driver on Linux
SDL2 works fine without a window system, but it seems the DPI-querying API will crash so let's not call that. Should still add command line options to control the screen resolution, i.e., overriding the window size.
Diffstat (limited to 'src/app.h')
-rw-r--r--src/app.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app.h b/src/app.h
index 5d1d42e1..55bec5a6 100644
--- a/src/app.h
+++ b/src/app.h
@@ -87,6 +87,8 @@ iBool isLandscape_App (void);
87iLocalDef iBool isPortrait_App (void) { return !isLandscape_App(); } 87iLocalDef iBool isPortrait_App (void) { return !isLandscape_App(); }
88enum iAppDeviceType deviceType_App (void); 88enum iAppDeviceType deviceType_App (void);
89iLocalDef iBool isPortraitPhone_App (void) { return isPortrait_App() && deviceType_App() == phone_AppDeviceType; } 89iLocalDef iBool isPortraitPhone_App (void) { return isPortrait_App() && deviceType_App() == phone_AppDeviceType; }
90iBool isRunningUnderWindowSystem_App (void);
91
90iGmCerts * certs_App (void); 92iGmCerts * certs_App (void);
91iVisited * visited_App (void); 93iVisited * visited_App (void);
92iBookmarks * bookmarks_App (void); 94iBookmarks * bookmarks_App (void);