Skip to content

Commit b66bd53

Browse files
committed
goodbye glhack
1 parent 1b9b21d commit b66bd53

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎src/graphics.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,6 @@ int gfx_check_mode(int w, int h)
17891789

17901790
static SDL_Surface *icon = NULL;
17911791
extern int software_sw;
1792-
extern int glhack_sw;
17931792

17941793
#ifdef _USE_SWROTATE
17951794
static int gfx_flip_rotate = 0;
@@ -1964,13 +1963,6 @@ int gfx_set_mode(int w, int h, int fs)
19641963
t = game_reset_name();
19651964
if (!t)
19661965
t = title;
1967-
if (glhack_sw) {
1968-
fprintf(stderr, "glhack: %d\n", glhack_sw);
1969-
/* fix for hackish samsung devices */
1970-
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, (glhack_sw / 100) % 10);
1971-
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, (glhack_sw / 10) % 10);
1972-
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, glhack_sw % 10);
1973-
}
19741966
#if defined(IOS) || defined(ANDROID)
19751967
SDL_VideoWindow = SDL_CreateWindow(t, win_w, win_h,
19761968
SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE

‎src/main.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ int resizable_sw = 0;
5858
int scale_sw = 1;
5959
int standalone_sw = 0;
6060
int nocursor_sw = 0;
61-
int glhack_sw = 0;
6261
int dpi_sw = 0;
6362
int kbd_sw = -1;
6463

@@ -469,11 +468,6 @@ int instead_main(int argc, char *argv[])
469468
nocursor_sw = 1;
470469
} else if (!strcmp(argv[i], "-software")) {
471470
software_sw = 1;
472-
} else if (!strcmp(argv[i], "-glhack")) {
473-
if ((i + 1) < argc)
474-
glhack_sw = atoi(argv[++i]);
475-
else
476-
glhack_sw = 565; /* some samsung devices */
477471
} else if (!strcmp(argv[i], "-resizable")) {
478472
resizable_sw = 1;
479473
} else if (!strcmp(argv[i], "-scale")) {

0 commit comments

Comments
 (0)