summaryrefslogtreecommitdiffstats
path: root/Imgui/interface
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-09-30 03:25:41 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-09-30 03:25:41 +0000
commiteae448239986ef4cb2833b5c7c1313e86f28b233 (patch)
treea18b8475b3489df6ed7719e7a810c76046a095f0 /Imgui/interface
parentEnabled ImGui on UWP (diff)
downloadDiligentTools-eae448239986ef4cb2833b5c7c1313e86f28b233.tar.gz
DiligentTools-eae448239986ef4cb2833b5c7c1313e86f28b233.zip
ImGui UWP: fixed window resizing
Diffstat (limited to 'Imgui/interface')
-rw-r--r--Imgui/interface/ImGuiImplUWP.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Imgui/interface/ImGuiImplUWP.h b/Imgui/interface/ImGuiImplUWP.h
index f65cdeb..f41d468 100644
--- a/Imgui/interface/ImGuiImplUWP.h
+++ b/Imgui/interface/ImGuiImplUWP.h
@@ -46,9 +46,17 @@ public:
virtual void NewFrame()override final;
+ void SetDisplaySize(Uint32 DisplayWidth, Uint32 DisplayHeight)
+ {
+ m_DisplayWidth = DisplayWidth;
+ m_DisplayHeight = DisplayHeight;
+ }
+
private:
INT64 m_Time = 0;
INT64 m_TicksPerSecond = 0;
+ Uint32 m_DisplayWidth = 0;
+ Uint32 m_DisplayHeight = 0;
};
}