Remove check for display height before allowing line doubling

This commit is contained in:
Dimitris Panokostas 2020-08-16 17:39:49 +02:00
parent 391bd6ff7e
commit 711c22f49e
3 changed files with 0 additions and 7 deletions

View file

@ -368,10 +368,6 @@ void target_fixup_options(struct uae_prefs* p)
p->picasso96_modeflags = RGBFF_CLUT | RGBFF_R5G6B5PC | RGBFF_R8G8B8A8;
if (p->gfx_vresolution && !can_have_linedouble)
// If there's not enough vertical space, cancel Line Doubling/Scanlines
p->gfx_vresolution = 0;
if (p->cachesize <= 0)
p->compfpu = false;

View file

@ -59,7 +59,6 @@ static int display_width;
static int display_height;
static int display_depth;
Uint32 pixel_format;
bool can_have_linedouble;
static unsigned long last_synctime;
static int host_hz = 50;
@ -401,7 +400,6 @@ int graphics_setup(void)
{
write_log("Current Display mode: bpp %i\t%s\t%i x %i\t%iHz\n", SDL_BITSPERPIXEL(current_mode.format), SDL_GetPixelFormatName(current_mode.format), current_mode.w, current_mode.h, current_mode.refresh_rate);
host_hz = current_mode.refresh_rate;
can_have_linedouble = current_mode.h >= 540;
}
Uint32 sdl_window_mode;

View file

@ -35,7 +35,6 @@ extern SDL_Window* sdl_window;
extern SDL_Surface* gui_screen;
extern SDL_Rect renderQuad;
extern bool can_have_linedouble;
extern void check_error_sdl(bool check, const char* message);
extern void toggle_fullscreen();
extern void DX_Fill(int dstx, int dsty, int width, int height, uae_u32 color);