Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dynamically change GetGameResolution
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=16b7ca5f9ca0095a8f3f5aed3b72ce1855e35e12
  • Loading branch information
silicon authored and blattersturm committed Apr 17, 2017
1 parent 52b8079 commit fd34300
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions components/rage-graphics-five/src/DrawCommands.cpp
Expand Up @@ -271,11 +271,19 @@ static uint32_t g_realResolution[2];

void GetGameResolution(int& resX, int& resY)
{
//resX = *(int*)0xFDCEAC;
//resY = *(int*)0xFDCEB0;
resX = g_resolution[0];
resY = g_resolution[1];

resX = g_realResolution[0];
resY = g_realResolution[1];
if (IsOnRenderThread() && (resX != resY))
{
g_realResolution[0] = resX;
g_realResolution[1] = resY;
}
else
{
resX = g_realResolution[0];
resY = g_realResolution[1];
}
}

hook::cdecl_stub<void(uint32_t)> setRasterizerState([] ()
Expand Down

0 comments on commit fd34300

Please sign in to comment.