patch/gfx: Remove non working window mode feature

This wasn't worked as intended since the beginning. There was also
an issue that actually raised a discussion about this and clarified
that it's not that easy under linux unfortunately.
This commit is contained in:
icex2
2021-03-19 16:23:50 +01:00
parent eafb2909d1
commit e265c048d5
2 changed files with 0 additions and 17 deletions
-12
View File
@@ -27,8 +27,6 @@ typedef Display *(*XOpenDisplay_t)(const char *display_name);
typedef XVisualInfo *(*glXChooseVisual_t)(
Display *dpy, int screen, int *attribList);
static bool patch_gfx_force_window = false;
static bool patch_gfx_initialized;
static XCreateWindow_t patch_gfx_real_XCreateWindow;
static XOpenDisplay_t patch_gfx_real_XOpenDisplay;
@@ -84,11 +82,6 @@ Window XCreateWindow(
}
}
if (patch_gfx_force_window) {
log_info("Forcing window mode");
attributes->override_redirect = 0;
}
return patch_gfx_real_XCreateWindow(
display,
parent,
@@ -164,8 +157,3 @@ void patch_gfx_init()
patch_gfx_initialized = true;
log_info("Initialized");
}
void patch_gfx_force_window_mode()
{
patch_gfx_force_window = true;
}
-5
View File
@@ -9,9 +9,4 @@
*/
void patch_gfx_init();
/**
* Force the game into window mode
*/
void patch_gfx_force_window_mode();
#endif