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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mw/] [src/] [mwin/] [winlib/] [fastfill.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
#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.