Changeset 7208 for trunk/src


Ignore:
Timestamp:
Oct 25, 2001, 6:02:02 PM (24 years ago)
Author:
sandervl
Message:

fixed thin border frame tracking

File:
1 edited

Legend:

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

    r7189 r7208  
    325325        SelectObject( hdc, hbrush );
    326326    }
    327     else DrawFocusRect( hdc, rect );
     327    else {
     328        static RECT oldRect = {0};
     329
     330        if(fRedraw && EqualRect(&oldRect, rect)) {
     331            return;
     332        }
     333
     334        if(fRedraw) {
     335            DrawFocusRect( hdc, &oldRect );
     336        }
     337        DrawFocusRect( hdc, rect );
     338        oldRect = *rect;
     339    }
    328340}
    329341
Note: See TracChangeset for help on using the changeset viewer.