Cleanup
This commit is contained in:
parent
4000615b45
commit
70a3badc0d
2 changed files with 7 additions and 7 deletions
12
src/Draw.cpp
12
src/Draw.cpp
|
@ -543,13 +543,13 @@ void BackupSurface(SurfaceID surf_no, const RECT *rect)
|
||||||
memset(&ddbltfx, 0, sizeof(DDBLTFX));
|
memset(&ddbltfx, 0, sizeof(DDBLTFX));
|
||||||
ddbltfx.dwSize = sizeof(DDBLTFX);
|
ddbltfx.dwSize = sizeof(DDBLTFX);
|
||||||
|
|
||||||
static RECT scaled_rect; // TODO - Not the original variable name
|
static RECT rcSet; // TODO - Not the original variable name
|
||||||
scaled_rect.left = rect->left * mag;
|
rcSet.left = rect->left * mag;
|
||||||
scaled_rect.top = rect->top * mag;
|
rcSet.top = rect->top * mag;
|
||||||
scaled_rect.right = rect->right * mag;
|
rcSet.right = rect->right * mag;
|
||||||
scaled_rect.bottom = rect->bottom * 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
|
void PutBitmap3(const RECT *rcView, int x, int y, const RECT *rect, SurfaceID surf_no) // Transparency
|
||||||
|
|
|
@ -60,6 +60,7 @@ void SetWindowName(HWND hWnd)
|
||||||
SetWindowTextA(hWnd, window_name);
|
SetWindowTextA(hWnd, window_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Framerate stuff
|
||||||
static unsigned long CountFramePerSecound(void)
|
static unsigned long CountFramePerSecound(void)
|
||||||
{
|
{
|
||||||
unsigned long current_tick; // The original name for this variable is unknown
|
unsigned long current_tick; // The original name for this variable is unknown
|
||||||
|
@ -87,7 +88,6 @@ static unsigned long CountFramePerSecound(void)
|
||||||
return max_count;
|
return max_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Framerate stuff
|
|
||||||
void PutFramePerSecound(void)
|
void PutFramePerSecound(void)
|
||||||
{
|
{
|
||||||
if (bFPS)
|
if (bFPS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue