Merge pull request #35 from charliebruce/quick-fixes

Quick fixes
This commit is contained in:
Ethan Lee 2020-01-11 00:35:46 -05:00 committed by GitHub
commit f4767ce18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 8 deletions

View File

@ -2,7 +2,6 @@
# Written by Ethan "flibitijibibo" Lee
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
PROJECT(VVVVVV)
# Architecture Flags
IF(APPLE)
@ -11,7 +10,8 @@ IF(APPLE)
IF(IS_DIRECTORY ${OSX_10_9_SDK_PATH})
SET(CMAKE_OSX_SYSROOT ${OSX_10_9_SDK_PATH})
ELSE()
MESSAGE(WARNING "macOS 10.9 SDK not found, expect badness!")
MESSAGE(WARNING "macOS 10.9 SDK not found - proceeding with the default SDK. This may cause issues!")
SET(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk)
ENDIF()
MESSAGE(STATUS "Using macOS SDK at ${CMAKE_OSX_SYSROOT}")
SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
@ -19,6 +19,8 @@ IF(APPLE)
ADD_COMPILE_OPTIONS(-Werror=partial-availability)
ENDIF()
PROJECT(VVVVVV)
# Compiler Flags
ADD_DEFINITIONS(-DPHYSFS_SUPPORTS_DEFAULT=0 -DPHYSFS_SUPPORTS_ZIP=1)

View File

@ -4,6 +4,7 @@ Contributors
(Ordered alphabetically by last name.)
* Christoph Böhmwalder (@chrboe)
* Charlie Bruce (@charliebruce)
* Brian Callahan (@ibara)
* Daniel Lee (@ddm999)
* Elliott Saltar (@eboyblue3)

View File

@ -105,15 +105,15 @@ Graphics::Graphics()
// initialize everything else to zero
backBuffer = nullptr;
backboxrect = SDL_Rect{ 0, 0, 0, 0 };
backboxrect.x = 0, backboxrect.y = 0, backboxrect.w = 0, backboxrect.h = 0;
bcol = 0;
bcol2 = 0;
ct = colourTransform{ 0 };
foot_rect = SDL_Rect{ 0, 0, 0, 0 };
ct.colour = 0;
foot_rect.x = 0, foot_rect.y = 0, foot_rect.w = 0, foot_rect.h = 0;
foregrounddrawn = false;
foregroundBuffer = nullptr;
backgrounddrawn = false;
images_rect = SDL_Rect{ 0, 0, 0, 0 };
images_rect.x = 0, images_rect.y = 0, images_rect.w = 0, images_rect.h = 0;
j = 0;
k = 0;
m = 0;
@ -121,12 +121,12 @@ Graphics::Graphics()
menubuffer = nullptr;
screenbuffer = nullptr;
tempBuffer = nullptr;
tl = point{ 0, 0 };
tl.x = 0, tl.y = 0;
towerbuffer = nullptr;
trinketr = 0;
trinketg = 0;
trinketb = 0;
warprect = SDL_Rect{ 0, 0, 0, 0 };
warprect.x = 0, warprect.y = 0, warprect.w = 0, warprect.h = 0;
}
Graphics::~Graphics()