Mercurial > ecos
view packages/services/gfx/mw/current/src/mwin/winlib/fastfill.c @ 208:e0c0827131d1 ecos
Merge from eCos master repository on 2002-05-20-20:11:54-BST
| author | jlarmour |
|---|---|
| date | Mon, 20 May 2002 22:19:26 +0000 |
| parents | |
| children |
line wrap: on
line source
#include "windows.h" #include "wintools.h" /* * WIN Draw Library * Fast fill rectangle */ /* * fast fill background (works with non-dithered colors only) */ void WINAPI FastFillRect(HDC hdc,LPRECT lprect,COLORREF cr) { COLORREF crOld; crOld = SetBkColor( hdc, cr); ExtTextOut( hdc, 0, 0, ETO_OPAQUE | ETO_CLIPPED, lprect, NULL, 0, NULL); SetBkColor( hdc, crOld); }
