mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-15 04:29:37 +00:00
Fix more dynamics, fix end screen stars with large vertical resolutions
This commit is contained in:
@@ -279,8 +279,20 @@ void FlushResolutionChange(void)
|
||||
{
|
||||
if (thisMac.isResolutionDirty)
|
||||
{
|
||||
GetDeviceRect(&thisMac.screen);
|
||||
thisMac.gray = thisMac.screen;
|
||||
GetDeviceRect(&thisMac.fullScreen);
|
||||
thisMac.constrainedScreen = thisMac.fullScreen;
|
||||
if (thisMac.constrainedScreen.Width() > kMaxViewWidth)
|
||||
{
|
||||
thisMac.constrainedScreen.left = 0;
|
||||
thisMac.constrainedScreen.right = kMaxViewWidth;
|
||||
}
|
||||
if (thisMac.constrainedScreen.Height() > kMaxViewHeight)
|
||||
{
|
||||
thisMac.constrainedScreen.top = 0;
|
||||
thisMac.constrainedScreen.bottom = kMaxViewHeight;
|
||||
}
|
||||
|
||||
thisMac.gray = thisMac.fullScreen;
|
||||
thisMac.gray.top = 20;
|
||||
thisMac.isResolutionDirty = false;
|
||||
}
|
||||
@@ -332,6 +344,10 @@ public:
|
||||
HandleResolutionChange(prevWidth, prevHeight, newWidth, newHeight);
|
||||
}
|
||||
|
||||
void AdjustRequestedResolution(uint32_t &width, uint32_t &height) override
|
||||
{
|
||||
}
|
||||
|
||||
static GpAppResolutionChangeHandler ms_instance;
|
||||
};
|
||||
|
||||
@@ -455,7 +471,7 @@ void CheckMemorySize (void)
|
||||
RedAlert(kErrNoMemory);
|
||||
else
|
||||
bytesNeeded += musicBytes;
|
||||
bytesNeeded += 4L * (long)thisMac.screen.bottom; // main screen
|
||||
bytesNeeded += 4L * (long)thisMac.constrainedScreen.bottom; // main screen
|
||||
bytesNeeded += (((long)houseRect.right - (long)houseRect.left) *
|
||||
((long)houseRect.bottom + 1 - (long)houseRect.top) *
|
||||
(long)thisMac.isDepth) / 8L; // work map
|
||||
|
||||
Reference in New Issue
Block a user