mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-03 03:09:13 +00:00
fix fullscreen stuff on debian?
This commit is contained in:
@@ -231,7 +231,12 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
|
|||||||
std::optional<int> selected_user{};
|
std::optional<int> selected_user{};
|
||||||
std::optional<u16> override_gdb_port{};
|
std::optional<u16> override_gdb_port{};
|
||||||
bool use_multiplayer = false;
|
bool use_multiplayer = false;
|
||||||
|
// Platforms that start with fullscreen
|
||||||
|
#if defined(__OPENORBIS__) || defined(__ANDROID__)
|
||||||
|
bool fullscreen = true;
|
||||||
|
#else
|
||||||
bool fullscreen = false;
|
bool fullscreen = false;
|
||||||
|
#endif
|
||||||
bool force_null_render = false;
|
bool force_null_render = false;
|
||||||
bool force_single_core = false;
|
bool force_single_core = false;
|
||||||
std::string nickname{};
|
std::string nickname{};
|
||||||
@@ -241,13 +246,6 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
|
|||||||
std::optional<std::string> log_filter{};
|
std::optional<std::string> log_filter{};
|
||||||
u16 port = Network::DefaultRoomPort;
|
u16 port = Network::DefaultRoomPort;
|
||||||
|
|
||||||
// Platforms that start with fullscreen
|
|
||||||
#if defined(__OPENORBIS__) || defined(__ANDROID__)
|
|
||||||
bool fullscreen = true;
|
|
||||||
#else
|
|
||||||
bool fullscreen = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
{"debug", no_argument, 0, 'd'},
|
{"debug", no_argument, 0, 'd'},
|
||||||
@@ -407,7 +405,7 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
|
|||||||
|
|
||||||
// Apply the command line arguments
|
// Apply the command line arguments
|
||||||
state->system.ApplySettings();
|
state->system.ApplySettings();
|
||||||
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::Null);
|
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::OpenGL_GLSL);
|
||||||
Common::Log::SetGlobalFilter(Common::Log::Filter(Common::Log::Level::Info));
|
Common::Log::SetGlobalFilter(Common::Log::Filter(Common::Log::Level::Info));
|
||||||
|
|
||||||
switch (Settings::values.renderer_backend.GetValue()) {
|
switch (Settings::values.renderer_backend.GetValue()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user