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] - Diff between revs 27 and 174

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

powered by: WebSVN 2.1.0

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