mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
LockWindowUpdate temporarily disabled because it seems to give an exception on Windows Vista. it is only a visual aesthetic anyway.
This commit is contained in:
parent
1d46b7d654
commit
25c7aa2af6
2 changed files with 4 additions and 4 deletions
|
@ -40,8 +40,8 @@ namespace CodeImp.DoomBuilder
|
|||
{
|
||||
#region ================== API Declarations
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern bool LockWindowUpdate(IntPtr hwnd);
|
||||
//[DllImport("user32.dll")]
|
||||
//public static extern bool LockWindowUpdate(IntPtr hwnd);
|
||||
|
||||
[DllImport("kernel32.dll", EntryPoint="RtlZeroMemory", SetLastError=false)]
|
||||
public static extern void ZeroMemory(IntPtr dest, int size);
|
||||
|
|
|
@ -299,7 +299,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
redrawtimer.Enabled = false;
|
||||
|
||||
// Resume control layouts
|
||||
if(displayresized) General.LockWindowUpdate(IntPtr.Zero);
|
||||
//if(displayresized) General.LockWindowUpdate(IntPtr.Zero);
|
||||
|
||||
// Map opened?
|
||||
if(General.Map != null)
|
||||
|
@ -323,7 +323,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
private void display_Resize(object sender, EventArgs e)
|
||||
{
|
||||
// Resizing
|
||||
if(!displayresized) General.LockWindowUpdate(display.Handle);
|
||||
//if(!displayresized) General.LockWindowUpdate(display.Handle);
|
||||
displayresized = true;
|
||||
|
||||
// Request redraw
|
||||
|
|
Loading…
Reference in a new issue