mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +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,
|
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 */
|
||||||
|
@ -977,10 +973,6 @@ DRAW_FUNC_NAME(vertScrollBoard)( DrawCtx* p_dctx, XP_Rect* rect,
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
return XP_FALSE;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#else /* #ifdef DRAW_LINK_DIRECT */
|
#else /* #ifdef DRAW_LINK_DIRECT */
|
||||||
static void
|
static void
|
||||||
ce_draw_doNothing( DrawCtx* dctx, ... )
|
ce_draw_doNothing( DrawCtx* dctx, ... )
|
||||||
|
|
Loading…
Reference in a new issue