From 5ab20920a2ca8f875b706eae4f01c4c48a1a8a7a Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 5 Mar 2019 10:27:34 +1100 Subject: [PATCH] how did that even compile --- src/Platform.c | 2 +- src/Program.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Platform.c b/src/Platform.c index ca94dc645..e1a886b55 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -2169,7 +2169,7 @@ ReturnCode Platform_Decrypt(const uint8_t* data, int len, uint8_t** dec, int* de void Platform_Init(void) { Platform_InitCommon(); /* stopwatch always in nanoseconds */ - sw_freqDiv = 1000; i + sw_freqDiv = 1000; } #endif #ifdef CC_BUILD_OSX diff --git a/src/Program.c b/src/Program.c index f8800b1ab..03ba02ef5 100644 --- a/src/Program.c +++ b/src/Program.c @@ -42,7 +42,6 @@ int main_imdct() { static void Program_RunGame(void) { const static String defPath = String_FromConst("texpacks/default.zip"); String title; char titleBuffer[STRING_SIZE]; - struct DisplayDevice device; int width, height; if (!File_Exists(&defPath)) { @@ -50,14 +49,13 @@ static void Program_RunGame(void) { "default.zip is missing, try downloading resources first.\n\nThe game will still run, but without any textures"); } - device = DisplayDevice_Default; - width = Options_GetInt(OPT_WINDOW_WIDTH, 0, device.Bounds.Width, 0); - height = Options_GetInt(OPT_WINDOW_HEIGHT, 0, device.Bounds.Height, 0); + width = Options_GetInt(OPT_WINDOW_WIDTH, 0, Display_Bounds.Width, 0); + height = Options_GetInt(OPT_WINDOW_HEIGHT, 0, Display_Bounds.Height, 0); /* No custom resolution has been set */ if (width == 0 || height == 0) { width = 854; height = 480; - if (device.Bounds.Width < 854) width = 640; + if (Display_Bounds.Width < 854) width = 640; } String_InitArray(title, titleBuffer);