forked from pyrite-dev/milsko
gdi: remove dead USE_PLGBLT code, since its always defined
This commit is contained in:
parent
bdcd380a2c
commit
f4be507c35
1 changed files with 2 additions and 9 deletions
|
|
@ -567,16 +567,11 @@ static void MwLLDestroyPixmapImpl(MwLLPixmap pixmap) {
|
||||||
free(pixmap);
|
free(pixmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define USE_PLGBLT
|
|
||||||
static void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
|
static void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
|
||||||
HDC hmdc = CreateCompatibleDC(handle->gdi.hDC);
|
HDC hmdc = CreateCompatibleDC(handle->gdi.hDC);
|
||||||
#ifdef USE_PLGBLT
|
|
||||||
POINT p[3];
|
POINT p[3];
|
||||||
#endif
|
|
||||||
|
|
||||||
SetStretchBltMode(handle->gdi.hDC, HALFTONE);
|
SetStretchBltMode(handle->gdi.hDC, HALFTONE);
|
||||||
|
|
||||||
#ifdef USE_PLGBLT
|
|
||||||
p[0].x = rect->x;
|
p[0].x = rect->x;
|
||||||
p[0].y = rect->y;
|
p[0].y = rect->y;
|
||||||
|
|
||||||
|
|
@ -588,9 +583,7 @@ static void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
|
||||||
|
|
||||||
SelectObject(hmdc, pixmap->gdi.hBitmap);
|
SelectObject(hmdc, pixmap->gdi.hBitmap);
|
||||||
|
|
||||||
if(!is_plgblt_reliable || PlgBlt(handle->gdi.hDC, p, hmdc, 0, 0, pixmap->common.width, pixmap->common.height, pixmap->gdi.hMask, 0, 0) == 0)
|
if(!is_plgblt_reliable || PlgBlt(handle->gdi.hDC, p, hmdc, 0, 0, pixmap->common.width, pixmap->common.height, pixmap->gdi.hMask, 0, 0) == 0) {
|
||||||
#endif
|
|
||||||
{
|
|
||||||
SelectObject(hmdc, pixmap->gdi.hMask2);
|
SelectObject(hmdc, pixmap->gdi.hMask2);
|
||||||
StretchBlt(handle->gdi.hDC, rect->x, rect->y, rect->width, rect->height, hmdc, 0, 0, pixmap->common.width, pixmap->common.height, SRCAND);
|
StretchBlt(handle->gdi.hDC, rect->x, rect->y, rect->width, rect->height, hmdc, 0, 0, pixmap->common.width, pixmap->common.height, SRCAND);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue