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:
@@ -94,6 +94,11 @@ void GpAppEnvironment::Render()
|
||||
GpAppInterface_Get()->PL_Render(m_displayDriver);
|
||||
}
|
||||
|
||||
void GpAppEnvironment::AdjustRequestedResolution(unsigned int &width, unsigned int &height)
|
||||
{
|
||||
GpAppInterface_Get()->PL_AdjustRequestedResolution(width, height);
|
||||
}
|
||||
|
||||
void GpAppEnvironment::SetDisplayDriver(IGpDisplayDriver *displayDriver)
|
||||
{
|
||||
m_displayDriver = displayDriver;
|
||||
|
||||
@@ -28,6 +28,7 @@ public:
|
||||
|
||||
GpDisplayDriverTickStatus_t Tick(IGpFiber *vosFiber);
|
||||
void Render();
|
||||
void AdjustRequestedResolution(unsigned int &width, unsigned int &height);
|
||||
|
||||
void SetDisplayDriver(IGpDisplayDriver *displayDriver);
|
||||
void SetAudioDriver(IGpAudioDriver *audioDriver);
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace
|
||||
{
|
||||
static_cast<GpAppEnvironment*>(context)->Render();
|
||||
}
|
||||
|
||||
void AdjustRequestedResolution(void *context, unsigned int &width, unsigned int &height)
|
||||
{
|
||||
static_cast<GpAppEnvironment*>(context)->AdjustRequestedResolution(width, height);
|
||||
}
|
||||
}
|
||||
|
||||
int GpMain::Run()
|
||||
@@ -52,6 +57,9 @@ int GpMain::Run()
|
||||
ddProps.m_renderFunc = RenderAppEnvironment;
|
||||
ddProps.m_renderFuncContext = appEnvironment;
|
||||
|
||||
ddProps.m_adjustRequestedResolutionFunc = AdjustRequestedResolution;
|
||||
ddProps.m_adjustRequestedResolutionFuncContext = appEnvironment;
|
||||
|
||||
ddProps.m_type = g_gpGlobalConfig.m_displayDriverType;
|
||||
ddProps.m_osGlobals = g_gpGlobalConfig.m_osGlobals;
|
||||
ddProps.m_eventQueue = eventQueue;
|
||||
|
||||
Reference in New Issue
Block a user