mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
Uses 4:3 aspect ratio (296x224) :x
This commit is contained in:
parent
e0f5b2d172
commit
3b9ddde051
4
config.h
4
config.h
@ -48,7 +48,7 @@
|
||||
////////////////
|
||||
|
||||
// Windowed
|
||||
static const float xscale = 4.0; // Real x res = 256 * xscale
|
||||
static const float xscale = 4.0; // Real x res = 296 * xscale
|
||||
static const float yscale = 4.0; // Real y res = 224 * yscale
|
||||
|
||||
// Fullscreen
|
||||
@ -62,7 +62,7 @@ static const bool vsync = true;
|
||||
// Smooths picture
|
||||
static const bool video_smooth = true;
|
||||
|
||||
// On resize and fullscreen, rendering area will stay 8:7
|
||||
// On resize and fullscreen, rendering area will stay 4:3
|
||||
static const bool force_aspect = true;
|
||||
|
||||
/////////// Video filters
|
||||
|
3
gl.c
3
gl.c
@ -101,7 +101,8 @@ static void GLFWCALL resize(int width, int height)
|
||||
|
||||
if ( keep_aspect )
|
||||
{
|
||||
float desired_aspect = 256.0/224.0;
|
||||
//float desired_aspect = 256.0/224.0;
|
||||
float desired_aspect = 296.0/224.0;
|
||||
float in_aspect = (float)width / height;
|
||||
|
||||
if ( (int)(in_aspect*100) > (int)(desired_aspect*100) )
|
||||
|
2
ssnes.c
2
ssnes.c
@ -114,7 +114,7 @@ static void init_video_input(void)
|
||||
#endif
|
||||
|
||||
video_info_t video = {
|
||||
.width = (fullscreen) ? fullscreen_x : (256 * xscale),
|
||||
.width = (fullscreen) ? fullscreen_x : (296 * xscale),
|
||||
.height = (fullscreen) ? fullscreen_y : (224 * yscale),
|
||||
.fullscreen = fullscreen,
|
||||
.vsync = vsync,
|
||||
|
Loading…
x
Reference in New Issue
Block a user