Use correct default resolution for RGSS2/3 (544x416)

This commit is contained in:
Jonas Kulla 2014-08-12 22:21:57 +02:00
parent d128375d62
commit 3550cc0ff5
3 changed files with 12 additions and 3 deletions

View File

@ -40,8 +40,8 @@ Config::Config()
fixedAspectRatio(true),
smoothScaling(false),
vsync(false),
defScreenW(640),
defScreenH(480),
defScreenW(DEF_SCREEN_W),
defScreenH(DEF_SCREEN_H),
fixedFramerate(0),
frameSkip(true),
solidFonts(false),

View File

@ -25,6 +25,14 @@
#include <string>
#include <vector>
#ifndef RGSS2
#define DEF_SCREEN_W 640
#define DEF_SCREEN_H 480
#else
#define DEF_SCREEN_W 544
#define DEF_SCREEN_H 416
#endif
struct Config
{
bool debugMode;

View File

@ -24,6 +24,7 @@
#include "util.h"
#include "gl-util.h"
#include "sharedstate.h"
#include "config.h"
#include "glstate.h"
#include "shader.h"
#include "scene.h"
@ -398,7 +399,7 @@ struct GraphicsPrivate
TEXFBO transBuffer;
GraphicsPrivate(RGSSThreadData *rtData)
: scRes(640, 480),
: scRes(DEF_SCREEN_W, DEF_SCREEN_H),
scSize(scRes),
winSize(rtData->config.defScreenW, rtData->config.defScreenH),
screen(scRes.x, scRes.y),