Skip to content

Commit

Permalink
Default to 320x240 maximum screen resolution for 320x480 devices (RG2…
Browse files Browse the repository at this point in the history
…80V/M)
  • Loading branch information
plrguez committed May 21, 2022
1 parent 2b500db commit c1cee2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/frontends/sdl/sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ static SDL_Surface *init_sdl(int with_joystick, int width, int height, int fulls
screen_max_width = video_info->current_w;
screen_max_height = video_info->current_h;
screen_max_depth = video_info->vfmt->BitsPerPixel;
#ifdef OD_BETA
if (screen_max_width == 320 && screen_max_height == 480)
screen_max_height = 240;
#endif
wdprintf(V_INFO, "sdl_frontend", "Available screen real estate: %d x %d pixels @ %d bpp\n",
screen_max_width, screen_max_height, screen_max_depth);
} else {
Expand Down

0 comments on commit c1cee2f

Please sign in to comment.