Turn on BitBlt scrolling.

This commit is contained in:
ehouse 2006-06-24 01:22:10 +00:00
parent 765638289b
commit 33c94620fb

View file

@ -936,10 +936,6 @@ DLSTATIC XP_Bool
DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect, DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
XP_S16 dist ) XP_S16 dist )
{ {
#if 0 /* don't turn this on until after ship? */
if ( dist < 0 ) {
return XP_FALSE;
} else {
XP_Bool success = XP_FALSE; XP_Bool success = XP_FALSE;
/* board passes in the whole board rect, so we need to subtract from it /* board passes in the whole board rect, so we need to subtract from it
the height of the area to be overwritten. If dist is negative, the the height of the area to be overwritten. If dist is negative, the
@ -959,7 +955,7 @@ DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
srcY = destY + dist; srcY = destY + dist;
} }
success = BitBlt( globals->hdc, /* HDC hdcDest, */ success = FALSE != BitBlt( globals->hdc, /* HDC hdcDest, */
rect->left, /* int nXDest */ rect->left, /* int nXDest */
destY, destY,
rect->width, /* width */ rect->width, /* width */
@ -976,10 +972,6 @@ DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
rect->height = dist; rect->height = dist;
} }
return success; return success;
}
#else
return XP_FALSE;
#endif
} }
#else /* #ifdef DRAW_LINK_DIRECT */ #else /* #ifdef DRAW_LINK_DIRECT */
static void static void