mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
fix non-high-res build so compiles again
This commit is contained in:
parent
39f10f0f67
commit
91d9e9b65b
2 changed files with 35 additions and 13 deletions
|
@ -315,9 +315,11 @@ palm_common_draw_drawCell( DrawCtx* p_dctx, XP_Rect* rect,
|
||||||
if ( len == 1 ) {
|
if ( len == 1 ) {
|
||||||
++x;
|
++x;
|
||||||
}
|
}
|
||||||
|
#ifdef FEATURE_HIGHRES
|
||||||
if ( dctx->doHiRes ) {
|
if ( dctx->doHiRes ) {
|
||||||
--y;
|
--y;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
WinDrawChars( (const char*)letters, len, x, y );
|
WinDrawChars( (const char*)letters, len, x, y );
|
||||||
|
|
||||||
showBonus = XP_FALSE;
|
showBonus = XP_FALSE;
|
||||||
|
@ -965,12 +967,18 @@ palm_draw_score_pendingScore( DrawCtx* p_dctx, XP_Rect* rect, XP_S16 score,
|
||||||
|
|
||||||
/* There's no room for the pts string if we're in highres mode and
|
/* There's no room for the pts string if we're in highres mode and
|
||||||
WinSetScalingMode isn't available. */
|
WinSetScalingMode isn't available. */
|
||||||
if ( !dctx->doHiRes || dctx->oneDotFiveAvail ) {
|
#ifdef FEATURE_HIGHRES
|
||||||
|
if ( !dctx->doHiRes || dctx->oneDotFiveAvail )
|
||||||
|
#endif
|
||||||
|
{
|
||||||
XP_UCHAR* str = (*dctx->getResStrFunc)( dctx->globals, STR_PTS );
|
XP_UCHAR* str = (*dctx->getResStrFunc)( dctx->globals, STR_PTS );
|
||||||
|
|
||||||
if ( dctx->oneDotFiveAvail ) {
|
if ( 0 ) {
|
||||||
|
#ifdef FEATURE_HIGHRES
|
||||||
|
} else if ( dctx->oneDotFiveAvail ) {
|
||||||
smallBoldStringAt( (const char*)str, XP_STRLEN((const char*)str),
|
smallBoldStringAt( (const char*)str, XP_STRLEN((const char*)str),
|
||||||
x, rect->top );
|
x, rect->top );
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
WinDrawChars( (const char*)str,
|
WinDrawChars( (const char*)str,
|
||||||
XP_STRLEN((const char*)str), x, rect->top );
|
XP_STRLEN((const char*)str), x, rect->top );
|
||||||
|
@ -1334,7 +1342,9 @@ palm_drawctxt_make( MPFORMAL GraphicsAbility able,
|
||||||
}
|
}
|
||||||
|
|
||||||
dctx->fntHeight = FntBaseLine();
|
dctx->fntHeight = FntBaseLine();
|
||||||
|
#ifdef FEATURE_HIGHRES
|
||||||
dctx->oneDotFiveAvail = globals->oneDotFiveAvail;
|
dctx->oneDotFiveAvail = globals->oneDotFiveAvail;
|
||||||
|
#endif
|
||||||
|
|
||||||
return (DrawCtx*)dctx;
|
return (DrawCtx*)dctx;
|
||||||
} /* palm_drawctxt_make */
|
} /* palm_drawctxt_make */
|
||||||
|
|
|
@ -342,7 +342,11 @@ positionBoard( PalmAppGlobals* globals )
|
||||||
XP_U16 timerWidth, timerLeft;
|
XP_U16 timerWidth, timerLeft;
|
||||||
XP_U16 freeSpaceH;
|
XP_U16 freeSpaceH;
|
||||||
XP_Bool showGrid = globals->gState.showGrid;
|
XP_Bool showGrid = globals->gState.showGrid;
|
||||||
XP_U16 doubler = globals->useHiRes? 2:1;
|
XP_U16 doubler =
|
||||||
|
#ifdef FEATURE_HIGHRES
|
||||||
|
globals->useHiRes? 2:
|
||||||
|
#endif
|
||||||
|
1;
|
||||||
#ifdef SHOW_PROGRESS
|
#ifdef SHOW_PROGRESS
|
||||||
RectangleType bounds;
|
RectangleType bounds;
|
||||||
#endif
|
#endif
|
||||||
|
@ -370,9 +374,11 @@ positionBoard( PalmAppGlobals* globals )
|
||||||
}
|
}
|
||||||
scale = scale * doubler;
|
scale = scale * doubler;
|
||||||
scaleV = scaleH = scale;
|
scaleV = scaleH = scale;
|
||||||
|
#ifdef FEATURE_HIGHRES
|
||||||
if ( globals->useHiRes ) {
|
if ( globals->useHiRes ) {
|
||||||
scaleV -= 2;
|
scaleV -= 2;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
freeSpaceH = ((PALM_MAX_COLS-nCols)/2) * scaleH;
|
freeSpaceH = ((PALM_MAX_COLS-nCols)/2) * scaleH;
|
||||||
if ( isLefty ) {
|
if ( isLefty ) {
|
||||||
|
@ -440,16 +446,22 @@ positionBoard( PalmAppGlobals* globals )
|
||||||
globals->needsScrollbar = false; /* default */
|
globals->needsScrollbar = false; /* default */
|
||||||
boardHeight = scaleV * nCols;
|
boardHeight = scaleV * nCols;
|
||||||
|
|
||||||
if ( globals->useHiRes ) {
|
if ( 0 ) {
|
||||||
|
#ifdef FEATURE_HIGHRES
|
||||||
|
} else if ( globals->useHiRes ) {
|
||||||
trayTop = ((160 - TRAY_HEIGHT_HR) * doubler) - 1;
|
trayTop = ((160 - TRAY_HEIGHT_HR) * doubler) - 1;
|
||||||
globals->needsScrollbar = false;
|
globals->needsScrollbar = false;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
trayTop = 160 - TRAY_HEIGHT_LR;
|
trayTop = 160 - TRAY_HEIGHT_LR;
|
||||||
globals->needsScrollbar = showGrid && (nCols == PALM_MAX_COLS);
|
globals->needsScrollbar = showGrid && (nCols == PALM_MAX_COLS);
|
||||||
}
|
}
|
||||||
|
|
||||||
trayScaleV = globals->useHiRes?
|
trayScaleV =
|
||||||
(TRAY_HEIGHT_HR*doubler) + 1:TRAY_HEIGHT_LR;
|
#ifdef FEATURE_HIGHRES
|
||||||
|
globals->useHiRes? (TRAY_HEIGHT_HR*doubler) + 1:
|
||||||
|
#endif
|
||||||
|
TRAY_HEIGHT_LR;
|
||||||
board_setTrayLoc( globals->game.board,
|
board_setTrayLoc( globals->game.board,
|
||||||
(isLefty? PALM_TRAY_LEFT_LH:PALM_TRAY_LEFT_RH) * doubler,
|
(isLefty? PALM_TRAY_LEFT_LH:PALM_TRAY_LEFT_RH) * doubler,
|
||||||
trayTop,
|
trayTop,
|
||||||
|
|
Loading…
Reference in a new issue