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