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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mw/] [src/] [mwin/] [winlib/] [fastfill.c] - Rev 1782

Compare with Previous | Blame | View Log

#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);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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