mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
don't use %c on ARM. Crashes due to my bad StrPrintF implementation.
This commit is contained in:
parent
e537e29e87
commit
e1d3eeaf2a
1 changed files with 6 additions and 2 deletions
|
@ -135,6 +135,7 @@ bitmapInRect( PalmDrawCtx* dctx, Int16 resID, XP_Rect* rectP )
|
||||||
#ifdef TALL_FONTS
|
#ifdef TALL_FONTS
|
||||||
# define BMP_WIDTH 16
|
# define BMP_WIDTH 16
|
||||||
# define BMP_HT 16
|
# define BMP_HT 16
|
||||||
|
|
||||||
static void
|
static void
|
||||||
measureFace( PalmDrawCtx* dctx, XP_UCHAR face, PalmFontHtInfo* fhi )
|
measureFace( PalmDrawCtx* dctx, XP_UCHAR face, PalmFontHtInfo* fhi )
|
||||||
{
|
{
|
||||||
|
@ -197,8 +198,11 @@ measureFace( PalmDrawCtx* dctx, XP_UCHAR face, PalmFontHtInfo* fhi )
|
||||||
fhi->topOffset = top;
|
fhi->topOffset = top;
|
||||||
fhi->height = bottom - top + 1;
|
fhi->height = bottom - top + 1;
|
||||||
|
|
||||||
|
#ifndef XW_TARGET_PNO
|
||||||
|
/* %c doesn't work with my ARM impl of StrPrintF */
|
||||||
XP_LOGF( "char: %c; top: %d; height: %d",
|
XP_LOGF( "char: %c; top: %d; height: %d",
|
||||||
ch, fhi->topOffset, fhi->height );
|
ch, fhi->topOffset, fhi->height );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
BmpDelete( bitmap );
|
BmpDelete( bitmap );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue