Changed default resolution and scaling

Defaults to 640 x 256, output scaling is done with height x 2 to keep
the right aspect ratio
This commit is contained in:
Dimitris Panokostas 2017-02-22 15:10:38 +01:00
parent 8ca8f12bf0
commit 2e49e5c423
2 changed files with 4 additions and 4 deletions

View file

@ -4111,7 +4111,7 @@ void default_prefs(struct uae_prefs* p, int type)
p->gfx_size_win.width = 720;
p->gfx_size_win.height = 568;
p->gfx_size.width = 320;
p->gfx_size.width = 640;
p->gfx_size.height = 256;
p->gfx_resolution = RES_HIRES;

View file

@ -55,7 +55,7 @@ void InitAmigaVidMode(struct uae_prefs* p)
/* Initialize structure for Amiga video modes */
gfxvidinfo.pixbytes = 2;
gfxvidinfo.bufmem = static_cast<uae_u8 *>(screen->pixels);
gfxvidinfo.outwidth = screen->w ? screen->w : 320; //p->gfx_size.width;
gfxvidinfo.outwidth = screen->w ? screen->w : 640; //p->gfx_size.width;
gfxvidinfo.outheight = screen->h ? screen->h : 256; //p->gfx_size.height;
gfxvidinfo.rowbytes = screen->pitch;
}
@ -99,7 +99,7 @@ static void open_screen(struct uae_prefs* p)
screen = SDL_CreateRGBSurface(0, width, height, 16, 0, 0, 0, 0);
check_error_sdl(screen == nullptr, "Unable to create a surface");
SDL_RenderSetLogicalSize(renderer, width, height);
SDL_RenderSetLogicalSize(renderer, width, height*2);
// Initialize SDL Texture for the renderer
texture = SDL_CreateTexture(renderer,