Uses 4:3 aspect ratio (296x224) :x

This commit is contained in:
Themaister 2010-05-30 20:36:58 +02:00
parent e0f5b2d172
commit 3b9ddde051
3 changed files with 5 additions and 4 deletions

View File

@ -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
View File

@ -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) )

View File

@ -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,