mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
Turn on BitBlt scrolling.
This commit is contained in:
parent
6ecbf11ad6
commit
a6d140581c
1 changed files with 34 additions and 42 deletions
|
@ -936,10 +936,6 @@ DLSTATIC XP_Bool
|
|||
DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
|
||||
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;
|
||||
/* 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
|
||||
|
@ -959,7 +955,7 @@ DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
|
|||
srcY = destY + dist;
|
||||
}
|
||||
|
||||
success = BitBlt( globals->hdc, /* HDC hdcDest, */
|
||||
success = FALSE != BitBlt( globals->hdc, /* HDC hdcDest, */
|
||||
rect->left, /* int nXDest */
|
||||
destY,
|
||||
rect->width, /* width */
|
||||
|
@ -976,10 +972,6 @@ DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
|
|||
rect->height = dist;
|
||||
}
|
||||
return success;
|
||||
}
|
||||
#else
|
||||
return XP_FALSE;
|
||||
#endif
|
||||
}
|
||||
#else /* #ifdef DRAW_LINK_DIRECT */
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue