From 36fdb4596d2be7e3ae7a6749bc8f433f3a676864 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 16 Jul 2019 13:21:21 +0100 Subject: [PATCH] Cleanup and an accuracy improvement --- src/Draw.cpp | 1 - src/Main.cpp | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Draw.cpp b/src/Draw.cpp index 283a97af..20e6569a 100644 --- a/src/Draw.cpp +++ b/src/Draw.cpp @@ -250,7 +250,6 @@ static BOOL LoadBitmap(SDL_RWops *fp, Surface_Ids surf_no, BOOL create_surface) } SDL_FreeSurface(converted_surface); - //surf[surf_no].needs_updating = TRUE; printf(" ^ Successfully loaded\n"); success = TRUE; } diff --git a/src/Main.cpp b/src/Main.cpp index 171eca8d..b785164f 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) } } - RECT unused_rect = {0, 0, 320, 240}; + RECT unused_rect = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT}; // Load cursor size_t size; @@ -265,7 +265,6 @@ int main(int argc, char *argv[]) StartDirectDraw(0, 0); else StartDirectDraw(1, 0); - break; } break; @@ -299,8 +298,8 @@ int main(int argc, char *argv[]) StartDirectDraw(2, colourDepth); SDL_ShowCursor(0); - break; } + break; } @@ -338,7 +337,7 @@ int main(int argc, char *argv[]) // Set rects RECT loading_rect = {0, 0, 64, 8}; - RECT clip_rect = {0, 0, windowWidth, windowHeight}; + RECT clip_rect = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT}; // Load the "LOADING" text MakeSurface_File("Loading", SURFACE_ID_LOADING);