mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +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
|
@ -133,8 +133,9 @@ bitmapInRect( PalmDrawCtx* dctx, Int16 resID, XP_Rect* rectP )
|
|||
} /* bitmapInRect */
|
||||
|
||||
#ifdef TALL_FONTS
|
||||
#define BMP_WIDTH 16
|
||||
#define BMP_HT 16
|
||||
# define BMP_WIDTH 16
|
||||
# define BMP_HT 16
|
||||
|
||||
static void
|
||||
measureFace( PalmDrawCtx* dctx, XP_UCHAR face, PalmFontHtInfo* fhi )
|
||||
{
|
||||
|
@ -197,8 +198,11 @@ measureFace( PalmDrawCtx* dctx, XP_UCHAR face, PalmFontHtInfo* fhi )
|
|||
fhi->topOffset = top;
|
||||
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",
|
||||
ch, fhi->topOffset, fhi->height );
|
||||
#endif
|
||||
}
|
||||
BmpDelete( bitmap );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue