Use correct default resolution for RGSS2/3 (544x416)
This commit is contained in:
		
							parent
							
								
									d128375d62
								
							
						
					
					
						commit
						3550cc0ff5
					
				
					 3 changed files with 12 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue