Skip to content

Commit

Permalink
tr2/output: fix stats not captured in screenshots
Browse files Browse the repository at this point in the history
Resolves #1925.
  • Loading branch information
rr- committed Nov 20, 2024
1 parent a648707 commit 05112ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- fixed being unable to use the drawbridge key in Tibetan Foothills after the flipmap (#1744)
- fixed missing death tiles in Temple of Xian room 91 (#1920)
- fixed broken final stats screen in software rendering mode (#1915, regression from 0.6)
- fixed screenshots not capturing level stats (#1925, regression from 0.6)

## [0.6](https://github.com/LostArtefacts/TRX/compare/tr2-0.5...tr2-0.6) - 2024-11-06
- added a fly cheat key (#1642)
Expand Down
1 change: 0 additions & 1 deletion src/tr2/decomp/decomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,6 @@ bool __cdecl D3DIsSupported(LPD3DDEVICEDESC_V2 desc)
bool __cdecl D3DSetViewport(void)
{
D3DVIEWPORT2 viewPort = {

.dwSize = sizeof(D3DVIEWPORT2),
.dvClipX = 0.0,
.dvClipY = 0.0,
Expand Down
12 changes: 6 additions & 6 deletions src/tr2/decomp/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ int32_t __cdecl LevelStats(const int32_t level_num)
S_CopyScreenToBuffer();

while (true) {
S_InitialisePolyList(0);
S_CopyBufferToScreen();

Shell_ProcessEvents();
Input_Update();
Shell_ProcessInput();

S_InitialisePolyList(0);
S_CopyBufferToScreen();

if (g_IsGameToExit) {
break;
}
Expand Down Expand Up @@ -378,13 +378,13 @@ int32_t __cdecl GameStats(const int32_t level_num)
}

while (true) {
S_InitialisePolyList(0);
S_CopyBufferToScreen();

Shell_ProcessEvents();
Input_Update();
Shell_ProcessInput();

S_InitialisePolyList(0);
S_CopyBufferToScreen();

if (g_IsGameToExit) {
break;
}
Expand Down

0 comments on commit 05112ab

Please sign in to comment.