diff options
Diffstat (limited to 'src/i_video.c')
-rw-r--r-- | src/i_video.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/i_video.c b/src/i_video.c index 6b850941..bf8ab77b 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1342,7 +1342,7 @@ static boolean AutoAdjustFullscreen(void) SDL_Rect **modes; SDL_Rect *best_mode; screen_mode_t *screen_mode; - int target_pixels, diff, best_diff; + int diff, best_diff; int i; modes = SDL_ListModes(NULL, SDL_FULLSCREEN); @@ -1359,9 +1359,8 @@ static boolean AutoAdjustFullscreen(void) best_mode = NULL; best_diff = INT_MAX; - target_pixels = screen_width * screen_height; - for (i=0; modes[i] != NULL; ++i) + for (i=0; modes[i] != NULL; ++i) { //printf("%ix%i?\n", modes[i]->w, modes[i]->h); |