diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-29 15:52:06 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-29 15:53:41 +0300 |
commit | fbad0cc670fc12f135af2a60f4af2aa9bd93cf9c (patch) | |
tree | 2100291c635de90389688533171d12fa6a52b8ed /src/app.h | |
parent | f01530f64b1e3951e0239ac8d2000cef57e814ba (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -87,6 +87,8 @@ iBool isLandscape_App (void); | |||
87 | iLocalDef iBool isPortrait_App (void) { return !isLandscape_App(); } | 87 | iLocalDef iBool isPortrait_App (void) { return !isLandscape_App(); } |
88 | enum iAppDeviceType deviceType_App (void); | 88 | enum iAppDeviceType deviceType_App (void); |
89 | iLocalDef iBool isPortraitPhone_App (void) { return isPortrait_App() && deviceType_App() == phone_AppDeviceType; } | 89 | iLocalDef iBool isPortraitPhone_App (void) { return isPortrait_App() && deviceType_App() == phone_AppDeviceType; } |
90 | iBool isRunningUnderWindowSystem_App (void); | ||
91 | |||
90 | iGmCerts * certs_App (void); | 92 | iGmCerts * certs_App (void); |
91 | iVisited * visited_App (void); | 93 | iVisited * visited_App (void); |
92 | iBookmarks * bookmarks_App (void); | 94 | iBookmarks * bookmarks_App (void); |