ref: 8f49276d5e4f52967419c952a7edb9ea2d36cf94
parent: 4c910dbee6b3f420d5166c59cf14375b3c82a6ab
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 16 10:44:53 EDT 2020
Note some not-so-authentic variable names
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -67,6 +67,7 @@
BOOL Flip_SystemTask(HWND hWnd)
{
+ // TODO - Not the original variable names
static DWORD timePrev;
static DWORD timeNow;
@@ -89,7 +90,7 @@
else
timePrev += FRAMERATE;
- static RECT dst_rect;
+ static RECT dst_rect; // TODO - Not the original vaiable name
GetWindowRect(hWnd, &dst_rect);
dst_rect.left += client_x;
dst_rect.top += client_y;
@@ -537,12 +538,12 @@
void BackupSurface(SurfaceID surf_no, const RECT *rect)
{
- static DDBLTFX ddbltfx;
+ static DDBLTFX ddbltfx; // TODO - Not the original variable name
memset(&ddbltfx, 0, sizeof(DDBLTFX));
ddbltfx.dwSize = sizeof(DDBLTFX);
- static RECT scaled_rect;
+ static RECT scaled_rect; // TODO - Not the original variable name
scaled_rect.left = rect->left * magnification;
scaled_rect.top = rect->top * magnification;
scaled_rect.right = rect->right * magnification;
@@ -698,12 +699,12 @@
void CortBox(const RECT *rect, unsigned long col)
{
- static DDBLTFX ddbltfx;
+ static DDBLTFX ddbltfx; // TODO - Not the original variable name
memset(&ddbltfx, 0, sizeof(DDBLTFX));
ddbltfx.dwSize = sizeof(DDBLTFX);
ddbltfx.dwFillColor = col;
- static RECT dst_rect;
+ static RECT dst_rect; // TODO - Not the original variable name
dst_rect.left = rect->left * magnification;
dst_rect.top = rect->top * magnification;
dst_rect.right = rect->right * magnification;
@@ -714,12 +715,12 @@
void CortBox2(const RECT *rect, unsigned long col, SurfaceID surf_no)
{
- static DDBLTFX ddbltfx;
+ static DDBLTFX ddbltfx; // TODO - Not the original variable name
memset(&ddbltfx, 0, sizeof(DDBLTFX));
ddbltfx.dwSize = sizeof(DDBLTFX);
ddbltfx.dwFillColor = col;
- static RECT dst_rect;
+ static RECT dst_rect; // TODO - Not the original variable name
dst_rect.left = rect->left * magnification;
dst_rect.top = rect->top * magnification;
dst_rect.right = rect->right * magnification;
@@ -732,7 +733,7 @@
// Dummied-out log function
// According to the Mac port, its name really is just "out".
-BOOL out(int unknown)
+static BOOL out(int unknown)
{
char unknown2[0x100];
int unknown3;
@@ -748,7 +749,8 @@
return TRUE;
}
-int RestoreSurfaces(void) // Guessed function name - this doesn't exist in the Linux port
+// TODO - Probably not the original variable name (this is an educated guess)
+int RestoreSurfaces(void)
{
int s;
RECT rect;