Clean-up Draw.cpp

This commit is contained in:
Clownacy 2019-11-15 21:00:29 +00:00
parent a3fd87e581
commit 989013168c

View file

@ -178,8 +178,10 @@ BOOL StartDirectDraw(HWND hWnd, int lMagnification, int lColourDepth)
void EndDirectDraw(HWND hWnd) void EndDirectDraw(HWND hWnd)
{ {
int i;
// Release all surfaces // Release all surfaces
for (int i = 0; i < SURFACE_ID_MAX; ++i) for (i = 0; i < SURFACE_ID_MAX; ++i)
{ {
if (surf[i] != NULL) if (surf[i] != NULL)
{ {
@ -749,6 +751,7 @@ BOOL DummiedOutLogFunction(int unknown)
int RestoreSurfaces(void) // Guessed function name - this doesn't exist in the Linux port int RestoreSurfaces(void) // Guessed function name - this doesn't exist in the Linux port
{ {
int s;
RECT rect; RECT rect;
int surfaces_regenerated = 0; int surfaces_regenerated = 0;
@ -772,7 +775,7 @@ int RestoreSurfaces(void) // Guessed function name - this doesn't exist in the L
DummiedOutLogFunction(0x62); DummiedOutLogFunction(0x62);
} }
for (int s = 0; s < SURFACE_ID_MAX; ++s ) for (s = 0; s < SURFACE_ID_MAX; ++s)
{ {
if (surf[s] != NULL) if (surf[s] != NULL)
{ {