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:
codeimp 2007-10-06 17:25:59 +00:00
parent 1d46b7d654
commit 25c7aa2af6
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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