Ignore:
Timestamp:
Jun 14, 2000, 4:25:57 PM (25 years ago)
Author:
sandervl
Message:

fix for excessive redrawing in Notes

File:
1 edited

Legend:

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

    r3705 r3708  
    1 /* $Id: pmwindow.cpp,v 1.94 2000-06-14 13:15:24 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.95 2000-06-14 14:25:57 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    689689    {
    690690      RECTL rectl;
    691 
    692         WinQueryUpdateRect(hwnd, &rectl);
     691      BOOL  rc;
     692
     693        rc = WinQueryUpdateRect(hwnd, &rectl);
    693694        dprintf(("OS2: WM_PAINT (%d,%d) (%d,%d)", rectl.xLeft, rectl.yBottom, rectl.xRight, rectl.yTop));
    694         if(win32wnd->IsWindowCreated())
     695        if(rc && win32wnd->IsWindowCreated() && (rectl.xLeft != rectl.xRight &&
     696           rectl.yBottom != rectl.yTop))
    695697        {
    696698                PRECT pClient = win32wnd->getClientRectPtr();
     
    705707                win32wnd->DispatchMsgA(pWinMsg);
    706708        }
     709        else    goto RunDefWndProc;
     710
    707711        //SvL: Not calling the default window procedure causes all sorts of
    708712        //     strange problems (redraw & hanging app)
     
    714718//      }
    715719//      dprintf(("Update rectangle (%d,%d)(%d,%d) not empty, msg %x", rectl.xLeft, rectl.yTop, rectl.xRight, rectl.yBottom, pWinMsg->message));
    716         goto RunDefWndProc;
    717 //        break;
     720//      goto RunDefWndProc;
     721        break;
    718722    }
    719723
Note: See TracChangeset for help on using the changeset viewer.