Changeset 6599 for trunk/src


Ignore:
Timestamp:
Aug 27, 2001, 10:42:13 AM (24 years ago)
Author:
sandervl
Message:

FillRect fix for brush 0

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r5973 r6599  
    1 /* $Id: syscolor.cpp,v 1.28 2001-06-12 17:02:35 sandervl Exp $ */
     1/* $Id: syscolor.cpp,v 1.29 2001-08-27 08:42:11 sandervl Exp $ */
    22
    33/*
     
    261261      return SysColorBrushes[nIndex];
    262262
    263   //MED calls FillRect with (hardcoded) zero brush -> index -1
     263  //TODO: is this still necessary (check in NT)
    264264  dprintf2(("WARNING: Unknown index(%d)", nIndex ));
    265265  return GetStockObject(LTGRAY_BRUSH);
  • trunk/src/user32/user32.cpp

    r6401 r6599  
    1 /* $Id: user32.cpp,v 1.111 2001-07-29 18:59:27 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.112 2001-08-27 08:42:13 sandervl Exp $ */
    22
    33/*
     
    11341134int WIN32API FillRect(HDC hDC, const RECT * lprc, HBRUSH hbr)
    11351135{
     1136    //SvL: brush 0 means currently selected brush (verified in NT4)
     1137    if(hbr == 0) {
     1138        hbr = GetCurrentObject(hDC, OBJ_BRUSH);
     1139    }
     1140    else
    11361141    if (hbr <= (HBRUSH) (COLOR_MAX + 1)) {
    11371142        hbr = GetSysColorBrush( (INT) hbr - 1 );
Note: See TracChangeset for help on using the changeset viewer.