URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 27 |
Rev 174 |
#include "windows.h"
|
#include "windows.h"
|
#include "wintools.h"
|
#include "wintools.h"
|
/*
|
/*
|
* WIN Draw Library
|
* WIN Draw Library
|
* Fast fill rectangle
|
* Fast fill rectangle
|
*/
|
*/
|
|
|
/*
|
/*
|
* fast fill background (works with non-dithered colors only)
|
* fast fill background (works with non-dithered colors only)
|
*/
|
*/
|
void WINAPI
|
void WINAPI
|
FastFillRect(HDC hdc,LPRECT lprect,COLORREF cr)
|
FastFillRect(HDC hdc,LPRECT lprect,COLORREF cr)
|
{
|
{
|
COLORREF crOld;
|
COLORREF crOld;
|
|
|
crOld = SetBkColor( hdc, cr);
|
crOld = SetBkColor( hdc, cr);
|
ExtTextOut( hdc, 0, 0, ETO_OPAQUE | ETO_CLIPPED, lprect, NULL, 0, NULL);
|
ExtTextOut( hdc, 0, 0, ETO_OPAQUE | ETO_CLIPPED, lprect, NULL, 0, NULL);
|
SetBkColor( hdc, crOld);
|
SetBkColor( hdc, crOld);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.