1 | /* |
1 | /* |
2 | parse_layout.c - Part of psiconv, a PSION 5 file formats converter |
2 | parse_layout.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
539 | psiconv_progress(lev+3,off+len,"Going to read font"); |
539 | psiconv_progress(lev+3,off+len,"Going to read font"); |
540 | psiconv_free_font(result->font); |
540 | psiconv_free_font(result->font); |
541 | res |= psiconv_parse_font(buf,lev+3,off+len, &leng, &result->font); |
541 | res |= psiconv_parse_font(buf,lev+3,off+len, &leng, &result->font); |
542 | len += leng; |
542 | len += leng; |
543 | break; |
543 | break; |
|
|
544 | case 0x24: |
|
|
545 | psiconv_progress(lev+3,off+len, |
|
|
546 | "Going to read unknown code 0x24 (%02x expected)", 0); |
|
|
547 | temp = psiconv_read_u8(buf,lev+3,off+len); |
|
|
548 | if (temp != 0) { |
|
|
549 | psiconv_warn(lev+3,off+len, |
|
|
550 | "Unknown code 0x24 value != 0x0 (0x%02x)", temp); |
|
|
551 | } |
|
|
552 | len ++; |
|
|
553 | break; |
544 | default: |
554 | default: |
545 | psiconv_warn(lev+3,off+len,"Unknown code in character layout list"); |
555 | psiconv_warn(lev+3,off+len,"Unknown code in character layout list"); |
546 | psiconv_debug(lev+3,off+len,"Code: %02x",id); |
556 | psiconv_debug(lev+3,off+len,"Code: %02x",id); |
547 | len ++; |
557 | len ++; |
548 | res = -1; |
558 | res = -1; |