diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-09-06 15:11:21 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-09-06 15:11:21 +0000 |
| commit | 1320e21ded80fc9f4ef298845966c80266d3b4e2 (patch) | |
| tree | 748fb14e996a8cb668ad365e6a0bff9a6e6484ab /Source/Core/VideoCommon | |
| parent | a3345ea942c975ceaaccf9b7bf7a4121411cba41 (diff) | |
OpenGL: OSD menu live resolution change fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4212 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/Render.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/Src/Render.h b/Source/Core/VideoCommon/Src/Render.h index 53db0a75c9..ad0e734dbc 100644 --- a/Source/Core/VideoCommon/Src/Render.h +++ b/Source/Core/VideoCommon/Src/Render.h @@ -39,24 +39,32 @@ extern int OSDChoice, OSDTime, OSDInternalW, OSDInternalH; class Renderer { public: - static bool Init(); - static void Shutdown(); + static bool Init(); + static void Shutdown(); // What's the real difference between these? Too similar names. - static void ResetAPIState(); - static void RestoreAPIState(); + static void ResetAPIState(); + static void RestoreAPIState(); - static void ReinitView(); + static void ReinitView(); static void SwapBuffers(); - static void SetColorMask(); + static void SetColorMask(); static void SetBlendMode(bool forceUpdate); static bool SetScissorRect(); + // Live resolution change + static bool Allow2x(); + static bool AllowCustom(); + // Render target management - static int GetTargetWidth(); - static int GetTargetHeight(); + static int GetFrameBufferWidth(); + static int GetFrameBufferHeight(); + static int GetCustomWidth(); + static int GetCustomHeight(); + static int GetTargetWidth(); + static int GetTargetHeight(); // Multiply any 2D EFB coordinates by these when rendering. static float GetTargetScaleX(); |
