From e265c048d5ee5b2fef0a5db7f87cb47e759b7012 Mon Sep 17 00:00:00 2001 From: icex2 Date: Fri, 19 Mar 2021 16:23:50 +0100 Subject: [PATCH] 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. --- src/main/hook/patch/gfx.c | 12 ------------ src/main/hook/patch/gfx.h | 5 ----- 2 files changed, 17 deletions(-) diff --git a/src/main/hook/patch/gfx.c b/src/main/hook/patch/gfx.c index ba53149..0c94c75 100644 --- a/src/main/hook/patch/gfx.c +++ b/src/main/hook/patch/gfx.c @@ -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; -} \ No newline at end of file diff --git a/src/main/hook/patch/gfx.h b/src/main/hook/patch/gfx.h index 1065794..e77f877 100644 --- a/src/main/hook/patch/gfx.h +++ b/src/main/hook/patch/gfx.h @@ -9,9 +9,4 @@ */ void patch_gfx_init(); -/** - * Force the game into window mode - */ -void patch_gfx_force_window_mode(); - #endif \ No newline at end of file