Changeset 3065
- Timestamp:
- 03/24/03 13:18:10 (6 years ago)
- Files:
-
- work/cvs2svn/src/mw32term.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
work/cvs2svn/src/mw32term.c
r3057 r3065 1241 1241 int c1, c2; 1242 1242 FontCp result = 0; 1243 int encoding = font_info->encoding[charset];1243 MW32LogicalFont *plf = MW32_FONT_FROM_FONT_INFO(font_info); 1244 1244 int charset_dimension; 1245 1245 … … 1255 1255 int i; 1256 1256 1257 len = MW32_FONT_FROM_FONT_INFO(font_info)->encoding.font_unit_byte;1257 len = plf->encoding.font_unit_byte; 1258 1258 1259 1259 if (charset_dimension == 1) … … 1276 1276 else 1277 1277 { 1278 switch (encoding)1278 switch (plf->encoding.type) 1279 1279 { 1280 1280 case ENCODING_DIMENSION: … … 1285 1285 1286 1286 case ENCODING_BYTE1MSB1: 1287 if (charset_dimension == 1) 1288 return MAKEFONTCP(0, (c1 | 0x80)); 1289 else 1290 return MAKEFONTCP((c1 | 0x80), (c2 | 0x80)); 1291 1292 case ENCODING_BYTE2MSB1: 1293 if (charset_dimension == 2) 1294 return MAKEFONTCP((c1 | 0x80), c2); 1295 else 1296 return MAKEFONTCP(0, c1); 1297 1298 case ENCODING_BYTE2LSB1: 1299 if (charset_dimension == 2) 1300 return MAKEFONTCP(0, (c2 | 0x80)); 1301 else 1302 return MAKEFONTCP(0, (c1 | 0x80)); 1287 return MAKEFONTCP(0, (c1 | 0x80)); 1288 1289 case ENCODING_BYTE2MSB11: 1290 return MAKEFONTCP((c1 | 0x80), (c2 | 0x80)); 1303 1291 1304 1292 case ENCODING_SHIFTJIS:
