mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 07:06:36 +00:00
Fix Windows size minimum not working correctly
This commit is contained in:
@@ -1202,6 +1202,12 @@ void GpDisplayDriverD3D11::Run()
|
|||||||
float pixelScaleX = 1.0f;
|
float pixelScaleX = 1.0f;
|
||||||
float pixelScaleY = 1.0f;
|
float pixelScaleY = 1.0f;
|
||||||
|
|
||||||
|
if (desiredWidth < 640)
|
||||||
|
desiredWidth = 640;
|
||||||
|
|
||||||
|
if (desiredHeight < 480)
|
||||||
|
desiredHeight = 480;
|
||||||
|
|
||||||
if (m_properties.m_adjustRequestedResolutionFunc(m_properties.m_adjustRequestedResolutionFuncContext, desiredWidth, desiredHeight, virtualWidth, virtualHeight, pixelScaleX, pixelScaleY))
|
if (m_properties.m_adjustRequestedResolutionFunc(m_properties.m_adjustRequestedResolutionFuncContext, desiredWidth, desiredHeight, virtualWidth, virtualHeight, pixelScaleX, pixelScaleY))
|
||||||
{
|
{
|
||||||
bool resizedOK = ResizeD3DWindow(m_osGlobals->m_hwnd, m_windowWidthPhysical, m_windowHeightPhysical, desiredWidth, desiredHeight, windowStyle, menus, logger);
|
bool resizedOK = ResizeD3DWindow(m_osGlobals->m_hwnd, m_windowWidthPhysical, m_windowHeightPhysical, desiredWidth, desiredHeight, windowStyle, menus, logger);
|
||||||
|
Reference in New Issue
Block a user