Show
Ignore:
Timestamp:
11/03/08 15:58:40 (2 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Merge changes SWT 3.4.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/Decorations.d

    r263 r320  
    14061406                oldHeight = rect.height; 
    14071407            } 
    1408             OS.UpdateWindow (handle); 
     1408            /* 
     1409            * Bug in Windows.  On Vista using the Classic theme,  
     1410            * when the window is hung and UpdateWindow() is called, 
     1411            * nothing is drawn, and outstanding WM_PAINTs are cleared. 
     1412            * This causes pixel corruption.  The fix is to avoid calling 
     1413            * update on hung windows.   
     1414            */ 
     1415            bool update = true; 
     1416            if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0) && !OS.IsAppThemed ()) { 
     1417                update = !OS.IsHungAppWindow (handle); 
     1418            } 
     1419            if (update) OS.UpdateWindow (handle); 
    14091420        } 
    14101421    } else {