shithub: cstory

Download patch

ref: 70a3badc0d96664af810ba48747b4ca6597fffcc
parent: 4000615b450b71b7dbdf5747a2268dd1e1f9bccd
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon May 4 14:21:44 EDT 2020

Cleanup

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -543,13 +543,13 @@
 	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
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -60,6 +60,7 @@
 	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 @@
 	return max_count;
 }
 
-// Framerate stuff
 void PutFramePerSecound(void)
 {
 	if (bFPS)