fix yet again

This commit is contained in:
Firerise9402 2023-08-09 20:14:05 -04:00
parent 44bf21ab05
commit be8df65b9d
2 changed files with 37 additions and 9 deletions

File diff suppressed because one or more lines are too long

View file

@ -77,6 +77,7 @@ namespace HeavenStudio
public void SetPosition(System.IntPtr ptr, short x, short y, short resX, short resY)
{
if(Application.isEditor && !Editor.Editor.instance.fullscreen && (pan != defaultPan | scale != defaultScale)) Reset();
if(Application.isEditor || !Editor.Editor.instance.fullscreen) return;
SetWindowPos(ptr, HWND_NOTOPMOST, x, y, resX, resY, SWP_SHOWWINDOW);
}