Ignore:
Timestamp:
Oct 19, 1999, 2:32:13 PM (26 years ago)
Author:
dengert
Message:

less background erases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r1342 r1354  
    1 /* $Id: pmwindow.cpp,v 1.35 1999-10-17 18:09:22 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.36 1999-10-19 12:32:13 dengert Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    605605        //OS/2 Window coordinates -> Win32 Window coordinates
    606606        if(win32wnd->MsgMouseMove(keystate, SHORT1FROMMP(mp1), MapOS2ToWin32Y(win32wnd, SHORT2FROMMP(mp1))))
    607         {
    608                 //Changes mouse cursor to default
    609                 goto RunDefWndProc;
    610         }
     607        {
     608                //Changes mouse cursor to default
     609                goto RunDefWndProc;
     610        }
    611611        break;
    612612    }
     
    849849    {
    850850        dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle()));
    851         if (!win32wnd->isSupressErase()) {
     851        if (WinQueryUpdateRect (hwnd, NULL) && !win32wnd->isSupressErase()) {
    852852            BOOL erased = sendEraseBkgnd (win32wnd);
    853853            win32wnd->setEraseBkgnd (!erased, !erased);
     
    860860
    861861        if (WinQueryUpdateRect (hwnd, NULL)) {
    862             if (!win32wnd->isSupressErase()) {
     862            if (win32wnd->isEraseBkgnd() && !win32wnd->isSupressErase()) {
    863863                BOOL erased = sendEraseBkgnd (win32wnd);
    864864                win32wnd->setEraseBkgnd (!erased, !erased);
Note: See TracChangeset for help on using the changeset viewer.