mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
SDL3: Use different class when built as Flatpak
This commit is contained in:
parent
2bea8728da
commit
426737aaa1
@ -28,6 +28,9 @@ static void Window_SDLFail(const char* place) {
|
|||||||
|
|
||||||
void Window_Init(void) {
|
void Window_Init(void) {
|
||||||
SDL_Init(SDL_INIT_VIDEO);
|
SDL_Init(SDL_INIT_VIDEO);
|
||||||
|
#ifdef CC_BUILD_FLATPAK
|
||||||
|
SDL_SetHint(SDL_HINT_APP_ID, "net.classicube.flatpak.client");
|
||||||
|
#endif
|
||||||
int displayID = SDL_GetPrimaryDisplay();
|
int displayID = SDL_GetPrimaryDisplay();
|
||||||
Input.Sources = INPUT_SOURCE_NORMAL;
|
Input.Sources = INPUT_SOURCE_NORMAL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user