mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 06:25:41 +00:00
scaling
This commit is contained in:
parent
140fa2a21c
commit
4d4758bc1e
2 changed files with 18 additions and 7 deletions
|
@ -3,6 +3,7 @@
|
||||||
#include <dinput.h>
|
#include <dinput.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define FORCE_PC_SCALING
|
||||||
#define WITHWINDOWS
|
#define WITHWINDOWS
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#ifndef PS2_MENU
|
#ifndef PS2_MENU
|
||||||
|
|
|
@ -116,14 +116,22 @@ inline uint32 ldb(uint32 p, uint32 s, uint32 w)
|
||||||
#include "skeleton.h"
|
#include "skeleton.h"
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
|
|
||||||
#ifdef GTA_PS2
|
#if defined(USE_PROPER_SCALING)
|
||||||
#define DEFAULT_SCREEN_WIDTH (640)
|
#ifdef FORCE_PC_SCALING
|
||||||
#define DEFAULT_SCREEN_HEIGHT (480)
|
#define DEFAULT_SCREEN_WIDTH (640)
|
||||||
#else
|
#define DEFAULT_SCREEN_HEIGHT (448)
|
||||||
#define DEFAULT_SCREEN_WIDTH (640)
|
#else
|
||||||
//#define DEFAULT_SCREEN_HEIGHT (448)
|
#define DEFAULT_SCREEN_WIDTH (640)
|
||||||
#define DEFAULT_SCREEN_HEIGHT (480)
|
#define DEFAULT_SCREEN_HEIGHT (480)
|
||||||
|
#endif
|
||||||
|
#elif defined(GTA_PS2)
|
||||||
|
#define DEFAULT_SCREEN_WIDTH (640)
|
||||||
|
#define DEFAULT_SCREEN_HEIGHT (480)
|
||||||
|
#else //elif defined(GTA_PC)
|
||||||
|
#define DEFAULT_SCREEN_WIDTH (640)
|
||||||
|
#define DEFAULT_SCREEN_HEIGHT (448)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEFAULT_ASPECT_RATIO (4.0f/3.0f)
|
#define DEFAULT_ASPECT_RATIO (4.0f/3.0f)
|
||||||
#define DEFAULT_VIEWWINDOW (0.7f)
|
#define DEFAULT_VIEWWINDOW (0.7f)
|
||||||
|
|
||||||
|
@ -141,8 +149,10 @@ inline uint32 ldb(uint32 p, uint32 s, uint32 w)
|
||||||
#define SCREEN_WIDTH ((float)RsGlobal.width)
|
#define SCREEN_WIDTH ((float)RsGlobal.width)
|
||||||
#define SCREEN_HEIGHT ((float)RsGlobal.height)
|
#define SCREEN_HEIGHT ((float)RsGlobal.height)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SCREEN_HEIGHT_PAL (512)
|
#define SCREEN_HEIGHT_PAL (512)
|
||||||
#define SCREEN_HEIGHT_NTSC (448)
|
#define SCREEN_HEIGHT_NTSC (448)
|
||||||
|
|
||||||
#define SCREEN_ASPECT_RATIO (CDraw::GetAspectRatio())
|
#define SCREEN_ASPECT_RATIO (CDraw::GetAspectRatio())
|
||||||
#define SCREEN_VIEWWINDOW (Tan(DEGTORAD(CDraw::GetScaledFOV() * 0.5f)))
|
#define SCREEN_VIEWWINDOW (Tan(DEGTORAD(CDraw::GetScaledFOV() * 0.5f)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue