OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [mwin/] [winlib/] [fastfill.c] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.