From 70a3badc0d96664af810ba48747b4ca6597fffcc Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 4 May 2020 18:21:44 +0100 Subject: [PATCH] Cleanup --- src/Draw.cpp | 12 ++++++------ src/Main.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Draw.cpp b/src/Draw.cpp index c89ba0a5..59aff022 100644 --- a/src/Draw.cpp +++ b/src/Draw.cpp @@ -543,13 +543,13 @@ void BackupSurface(SurfaceID surf_no, const RECT *rect) memset(&ddbltfx, 0, sizeof(DDBLTFX)); ddbltfx.dwSize = sizeof(DDBLTFX); - static RECT scaled_rect; // TODO - Not the original variable name - scaled_rect.left = rect->left * mag; - scaled_rect.top = rect->top * mag; - scaled_rect.right = rect->right * mag; - scaled_rect.bottom = rect->bottom * mag; + static RECT rcSet; // TODO - Not the original variable name + rcSet.left = rect->left * mag; + rcSet.top = rect->top * mag; + rcSet.right = rect->right * mag; + rcSet.bottom = rect->bottom * mag; - surf[surf_no]->Blt(&scaled_rect, backbuffer, &scaled_rect, DDBLT_WAIT, &ddbltfx); + surf[surf_no]->Blt(&rcSet, backbuffer, &rcSet, DDBLT_WAIT, &ddbltfx); } void PutBitmap3(const RECT *rcView, int x, int y, const RECT *rect, SurfaceID surf_no) // Transparency diff --git a/src/Main.cpp b/src/Main.cpp index 5b64cecf..4332c64e 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -60,6 +60,7 @@ void SetWindowName(HWND hWnd) SetWindowTextA(hWnd, window_name); } +// Framerate stuff static unsigned long CountFramePerSecound(void) { unsigned long current_tick; // The original name for this variable is unknown @@ -87,7 +88,6 @@ static unsigned long CountFramePerSecound(void) return max_count; } -// Framerate stuff void PutFramePerSecound(void) { if (bFPS)