From 9928df86f27f4b5e3d50c8526a96df236285952e Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 16 Apr 2002 13:39:17 +0000 Subject: [PATCH] * src/pcf/pcfread (pcf_get_accell): Fix parsing of accelerator tables. --- ChangeLog | 5 +++++ src/pcf/pcfread.c | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 146553401..f75048808 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-16 Francesco Zappa Nardelli + + * src/pcf/pcfread (pcf_get_accell): Fix parsing of accelerator + tables. + 2002-04-15 David Turner * docs/FTL.txt: Formatting. diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c index 9a2966ce1..96f484181 100644 --- a/src/pcf/pcfread.c +++ b/src/pcf/pcfread.c @@ -819,21 +819,29 @@ THE SOFTWARE. goto Bail; } - error = pcf_get_metric( stream, format, &(accel->minbounds) ); + error = pcf_get_metric( stream, + format & ( ~PCF_FORMAT_MASK ), + &(accel->minbounds) ); if ( error ) goto Bail; - error = pcf_get_metric( stream, format, &(accel->maxbounds) ); + error = pcf_get_metric( stream, + format & ( ~PCF_FORMAT_MASK ), + &(accel->maxbounds) ); if ( error ) goto Bail; if ( PCF_FORMAT_MATCH( format, PCF_ACCEL_W_INKBOUNDS ) ) { - error = pcf_get_metric( stream, format, &(accel->ink_minbounds) ); + error = pcf_get_metric( stream, + format & ( ~PCF_FORMAT_MASK ), + &(accel->ink_minbounds) ); if ( error ) goto Bail; - error = pcf_get_metric( stream, format, &(accel->ink_maxbounds) ); + error = pcf_get_metric( stream, + format & ( ~PCF_FORMAT_MASK ), + &(accel->ink_maxbounds) ); if ( error ) goto Bail; }