diff options
author | aap <aap@papnet.eu> | 2019-06-17 07:29:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 07:29:52 +0200 |
commit | fcc6a8bc555b9aefebc51c8a479abadfad9c120a (patch) | |
tree | cc2c85e0ccf486546de22074639d0e8fbe032f65 /src/main.cpp | |
parent | fixed rebind bug (diff) | |
parent | Update HUD stuff, bug and format fixes. (diff) | |
download | re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.tar re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.tar.gz re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.tar.bz2 re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.tar.lz re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.tar.xz re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.tar.zst re3-fcc6a8bc555b9aefebc51c8a479abadfad9c120a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp index 976de407..655cc106 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,6 +57,7 @@ uint8 work_buff[55000]; char gString[256]; +wchar *gUString = (wchar*)0x74B018; bool &b_FoundRecentSavedGameWantToLoad = *(bool*)0x95CDA8; @@ -322,15 +323,16 @@ Render2dStuff(void) CRGBA black(0, 0, 0, 255); // top and bottom strips - if(weaponType == WEAPONTYPE_ROCKETLAUNCHER){ - CSprite2d::DrawRect(CRect(0.0f, 0.0f, SCREENW, SCREENH/2 - SCREEN_STRETCH_Y(180)), black); - CSprite2d::DrawRect(CRect(0.0f, SCREENH/2 + SCREEN_STRETCH_Y(170), SCREENW, SCREENH), black); - }else{ - CSprite2d::DrawRect(CRect(0.0f, 0.0f, SCREENW, SCREENH/2 - SCREEN_STRETCH_Y(210)), black); - CSprite2d::DrawRect(CRect(0.0f, SCREENH/2 + SCREEN_STRETCH_Y(210), SCREENW, SCREENH), black); + if (weaponType == WEAPONTYPE_ROCKETLAUNCHER) { + CSprite2d::DrawRect(CRect(0.0f, 0.0f, SCREENW, SCREENH / 2 - HUD_STRETCH_Y(180)), black); + CSprite2d::DrawRect(CRect(0.0f, SCREENH / 2 + HUD_STRETCH_Y(170), SCREENW, SCREENH), black); + } + else { + CSprite2d::DrawRect(CRect(0.0f, 0.0f, SCREENW, SCREENH / 2 - HUD_STRETCH_Y(210)), black); + CSprite2d::DrawRect(CRect(0.0f, SCREENH / 2 + HUD_STRETCH_Y(210), SCREENW, SCREENH), black); } - CSprite2d::DrawRect(CRect(0.0f, 0.0f, SCREENW/2 - SCREEN_STRETCH_X(210), SCREENH), black); - CSprite2d::DrawRect(CRect(SCREENW/2 + SCREEN_STRETCH_X(210), 0.0f, SCREENW, SCREENH), black); + CSprite2d::DrawRect(CRect(0.0f, 0.0f, SCREENW / 2 - HUD_STRETCH_X(210), SCREENH), black); + CSprite2d::DrawRect(CRect(SCREENW / 2 + HUD_STRETCH_X(210), 0.0f, SCREENW, SCREENH), black); } MusicManager.DisplayRadioStationName(); |