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/dc.cpp

    r3679 r3708  
    1 /* $Id: dc.cpp,v 1.60 2000-06-08 18:10:09 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.61 2000-06-14 14:25:56 sandervl Exp $ */
    22
    33/*
     
    625625   }
    626626   else {
    627 #if 0
    628         HRGN hrgnTmp = GpiCreateRegion(pHps->hps, 1, &rectl);
    629 
    630         WinQueryUpdateRegion(hwndClient, hrgnTmp);
    631 
    632         RGNRECT rgnrect = {0, 12, 0, RECTDIR_LFRT_TOPBOT};
    633         RECTL   rectls[12], rcltemp;
    634         GpiQueryRegionRects(pHps->hps, hrgnTmp, &rcltemp, &rgnrect, &rectls[0]);
    635         GpiDestroyRegion(pHps->hps, hrgnTmp);
    636 #endif
    637627        WinValidateRect(hwndClient, &rectl, FALSE);
    638628
     
    11101100             wnd->setEraseBkgnd(TRUE);
    11111101        }
     1102        else
     1103        if (redraw & RDW_NOERASE_W)
     1104            wnd->setEraseBkgnd(FALSE);
    11121105
    11131106        if (!pRect && !hrgn)
     
    12031196   result = RedrawWindow (hwnd, pRect, NULLHANDLE,
    12041197                          RDW_ALLCHILDREN_W | RDW_INVALIDATE_W |
    1205                           (erase ? RDW_ERASE_W : 0) |
     1198                          (erase ? RDW_ERASE_W : RDW_NOERASE_W) |
    12061199                          (hwnd == NULLHANDLE ? RDW_UPDATENOW_W : 0));
    12071200   return (result);
     
    12161209   result = RedrawWindow (hwnd, NULL, hrgn,
    12171210                          RDW_ALLCHILDREN_W | RDW_INVALIDATE_W |
    1218                           (erase ? RDW_ERASE_W : 0) |
     1211                          (erase ? RDW_ERASE_W : RDW_NOERASE_W) |
    12191212                          (hwnd == NULLHANDLE ? RDW_UPDATENOW_W : 0));
    12201213   return (result);
Note: See TracChangeset for help on using the changeset viewer.