From 1a033f9007b04ab56679edd1eb3caf2d04c5206f Mon Sep 17 00:00:00 2001 From: Nathan Fulton Date: Sat, 29 Apr 2017 23:29:28 -0400 Subject: [PATCH] Remove HostHelpers cxScreen hack There used to be a blt bug that would occur when cxScreen was an odd value. Now that SDL API is being used for blt operations, this issue no longer exists. --- game/sdl/android/jni/ht/hosthelpers.cpp | 5 ----- game/sdl/ios/hosthelpers.mm | 5 ----- 2 files changed, 10 deletions(-) diff --git a/game/sdl/android/jni/ht/hosthelpers.cpp b/game/sdl/android/jni/ht/hosthelpers.cpp index f407ea5..d0c4f05 100644 --- a/game/sdl/android/jni/ht/hosthelpers.cpp +++ b/game/sdl/android/jni/ht/hosthelpers.cpp @@ -226,11 +226,6 @@ void HostHelpers::GetSurfaceProperties(SurfaceProperties *pprops) cxScreen = screenWidth / density; cyScreen = screenHeight / density; - // HT grpahics are whack when the screen width is an odd number of bounds - // Hack: "increase" the screen width by one pixel if needed - if (cxScreen % 2) - cxScreen++; - pprops->cxWidth = cxScreen; pprops->cyHeight = cyScreen; pprops->cbxPitch = 1; diff --git a/game/sdl/ios/hosthelpers.mm b/game/sdl/ios/hosthelpers.mm index ec7f756..e8ea3c7 100644 --- a/game/sdl/ios/hosthelpers.mm +++ b/game/sdl/ios/hosthelpers.mm @@ -142,11 +142,6 @@ void HostHelpers::GetSurfaceProperties(SurfaceProperties *pprops) cxScreen = [UIScreen mainScreen].bounds.size.height; cyScreen = [UIScreen mainScreen].bounds.size.width; } - - // WI grpahics are whack when the screen width is an odd number of bounds - // Hack: "increase" the screen width by one pixel if needed - if (cxScreen % 2) - cxScreen++; pprops->cxWidth = cxScreen; pprops->cyHeight = cyScreen;