mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-09-25 07:37:56 +03:00
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:
@@ -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;
|
||||
}
|
||||
@@ -9,9 +9,4 @@
|
||||
*/
|
||||
void patch_gfx_init();
|
||||
|
||||
/**
|
||||
* Force the game into window mode
|
||||
*/
|
||||
void patch_gfx_force_window_mode();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user