Mercurial > ecos
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 207:74c807ddde34 | 208:e0c0827131d1 |
|---|---|
| 1 #include "windows.h" | |
| 2 #include "wintools.h" | |
| 3 /* | |
| 4 * WIN Draw Library | |
| 5 * Fast fill rectangle | |
| 6 */ | |
| 7 | |
| 8 /* | |
| 9 * fast fill background (works with non-dithered colors only) | |
| 10 */ | |
| 11 void WINAPI | |
| 12 FastFillRect(HDC hdc,LPRECT lprect,COLORREF cr) | |
| 13 { | |
| 14 COLORREF crOld; | |
| 15 | |
| 16 crOld = SetBkColor( hdc, cr); | |
| 17 ExtTextOut( hdc, 0, 0, ETO_OPAQUE | ETO_CLIPPED, lprect, NULL, 0, NULL); | |
| 18 SetBkColor( hdc, crOld); | |
| 19 } |
