Clean-up Draw.cpp
This commit is contained in:
parent
a3fd87e581
commit
989013168c
1 changed files with 5 additions and 2 deletions
|
@ -178,8 +178,10 @@ BOOL StartDirectDraw(HWND hWnd, int lMagnification, int lColourDepth)
|
|||
|
||||
void EndDirectDraw(HWND hWnd)
|
||||
{
|
||||
int i;
|
||||
|
||||
// Release all surfaces
|
||||
for (int i = 0; i < SURFACE_ID_MAX; ++i)
|
||||
for (i = 0; i < SURFACE_ID_MAX; ++i)
|
||||
{
|
||||
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 s;
|
||||
RECT rect;
|
||||
int surfaces_regenerated = 0;
|
||||
|
||||
|
@ -772,7 +775,7 @@ int RestoreSurfaces(void) // Guessed function name - this doesn't exist in the L
|
|||
DummiedOutLogFunction(0x62);
|
||||
}
|
||||
|
||||
for (int s = 0; s < SURFACE_ID_MAX; ++s )
|
||||
for (s = 0; s < SURFACE_ID_MAX; ++s)
|
||||
{
|
||||
if (surf[s] != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue