shithub: cstory

Download patch

ref: 36fdb4596d2be7e3ae7a6749bc8f433f3a676864
parent: 6c7d49ad503190f943380f36812c7128453710c1
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jul 16 09:21:21 EDT 2019

Cleanup and an accuracy improvement

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -250,7 +250,6 @@
 						}
 
 						SDL_FreeSurface(converted_surface);
-						//surf[surf_no].needs_updating = TRUE;
 						printf(" ^ Successfully loaded\n");
 						success = TRUE;
 					}
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -208,7 +208,7 @@
 			}
 		}
 
-		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 @@
 						StartDirectDraw(0, 0);
 					else
 						StartDirectDraw(1, 0);
-					break;
 				}
 
 				break;
@@ -299,8 +298,8 @@
 					StartDirectDraw(2, colourDepth);
 
 					SDL_ShowCursor(0);
-					break;
 				}
+
 				break;
 		}
 
@@ -338,7 +337,7 @@
 
 			// 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);