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.
This commit is contained in:
Nathan Fulton 2017-04-29 23:29:28 -04:00
parent af52a6755a
commit 1a033f9007
2 changed files with 0 additions and 10 deletions

View File

@ -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;

View File

@ -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;