diff options
| author | ubkp <[email protected]> | 2023-10-13 14:53:31 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-13 19:53:31 +0200 |
| commit | f3c27ec157f3a3e914f8872714173f87e7ea7751 (patch) | |
| tree | 603aa73f5420abe79208db3fbc3075b7798dfb92 /src | |
| parent | 0f4a8cf7cb18dbd3594c77c5b2558f6cc979f2ef (diff) | |
| download | raylib-f3c27ec157f3a3e914f8872714173f87e7ea7751.tar.gz raylib-f3c27ec157f3a3e914f8872714173f87e7ea7751.zip | |
Fix `android`, `drm` compilation issue on `InitWindow` (#3407)
* Fix drm compilation issue on InitWindow
* Fix android compilation issue on InitWindow
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore_android.c | 10 | ||||
| -rw-r--r-- | src/rcore_drm.c | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/rcore_android.c b/src/rcore_android.c index 5f6f34ba..39e4694c 100644 --- a/src/rcore_android.c +++ b/src/rcore_android.c @@ -190,7 +190,7 @@ void InitWindow(int width, int height, const char *title) CORE.Window.screen.height = height; CORE.Window.currentFbo.width = width; CORE.Window.currentFbo.height = height; - + // Set desired windows flags before initializing anything ANativeActivity_setWindowFlags(platform.app->activity, AWINDOW_FLAG_FULLSCREEN, 0); //AWINDOW_FLAG_SCALED, AWINDOW_FLAG_DITHER @@ -228,12 +228,12 @@ void InitWindow(int width, int height, const char *title) // Initialize base path for storage CORE.Storage.basePath = platform.app->activity->internalDataPath; - + // Set some default window flags CORE.Window.flags &= ~FLAG_WINDOW_HIDDEN; // false - CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED); // false - CORE.Window.flags |= FLAG_WINDOW_MAXIMIZED); // true - CORE.Window.flags &= ~FLAG_WINDOW_UNFOCUSED); // false + CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED; // false + CORE.Window.flags |= FLAG_WINDOW_MAXIMIZED; // true + CORE.Window.flags &= ~FLAG_WINDOW_UNFOCUSED; // false TRACELOG(LOG_INFO, "PLATFORM: ANDROID: Application initialized successfully"); diff --git a/src/rcore_drm.c b/src/rcore_drm.c index c0e88c72..2644c5e7 100644 --- a/src/rcore_drm.c +++ b/src/rcore_drm.c @@ -228,16 +228,16 @@ void InitWindow(int width, int height, const char *title) // Set some default window flags CORE.Window.flags &= ~FLAG_WINDOW_HIDDEN; // false - CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED); // false - CORE.Window.flags |= FLAG_WINDOW_MAXIMIZED); // true - CORE.Window.flags &= ~FLAG_WINDOW_UNFOCUSED); // false - + CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED; // false + CORE.Window.flags |= FLAG_WINDOW_MAXIMIZED; // true + CORE.Window.flags &= ~FLAG_WINDOW_UNFOCUSED; // false + // Initialize hi-res timer InitTimer(); - + // Initialize base path for storage CORE.Storage.basePath = GetWorkingDirectory(); - + // Initialize raw input system InitEvdevInput(); // Evdev inputs initialization InitGamepad(); // Gamepad init |
