Browse Source

Also send highdpi parameter in window resize event on D3D9/D3D11 to match OpenGL behavior.

Lasse Öörni 8 năm trước cách đây
mục cha
commit
18df5b8525

+ 1 - 0
Source/Urho3D/Graphics/Direct3D11/D3D11Graphics.cpp

@@ -1872,6 +1872,7 @@ void Graphics::OnWindowResized()
     eventData[P_FULLSCREEN] = fullscreen_;
     eventData[P_RESIZABLE] = resizable_;
     eventData[P_BORDERLESS] = borderless_;
+    eventData[P_HIGHDPI] = highDPI_;
     SendEvent(E_SCREENMODE, eventData);
 }
 

+ 1 - 0
Source/Urho3D/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -2122,6 +2122,7 @@ void Graphics::OnWindowResized()
     eventData[P_FULLSCREEN] = fullscreen_;
     eventData[P_RESIZABLE] = resizable_;
     eventData[P_BORDERLESS] = borderless_;
+    eventData[P_HIGHDPI] = highDPI_;
     SendEvent(E_SCREENMODE, eventData);
 }