mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-25 20:35:16 -06:00
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:
parent
af52a6755a
commit
1a033f9007
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user