mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed ImGui being distorted after window resize or move
This commit is contained in:
@@ -6,7 +6,6 @@ using DirectX.Windows.Kernel32;
|
||||
using DirectX.Windows.WindowMessages;
|
||||
using GlitchyEngine.Events;
|
||||
using System.Diagnostics;
|
||||
using imgui_beef;
|
||||
using GlitchyEngine.Platform.DX11;
|
||||
using GlitchyEngine.Math;
|
||||
using static System.Windows;
|
||||
@@ -283,8 +282,6 @@ namespace GlitchyEngine.Platform.Windows
|
||||
{
|
||||
window._isResizingOrMoving = false;
|
||||
|
||||
DirectX.UpdateSwapchain((.)window._clientRect.Width, (.)window._clientRect.Width);
|
||||
|
||||
var resEvent = scope WindowResizeEvent(window._clientRect.Width, window._clientRect.Height, false);
|
||||
window._eventCallback(resEvent);
|
||||
var moveEvent = scope WindowMoveEvent(window._clientRect.X, window._clientRect.Y, false);
|
||||
|
||||
Reference in New Issue
Block a user