… | |
… | |
641 | if (res) |
641 | if (res) |
642 | goto ERROR1; |
642 | goto ERROR1; |
643 | psiconv_debug(lev+3,off+len,"Id: %02x",id); |
643 | psiconv_debug(lev+3,off+len,"Id: %02x",id); |
644 | len ++; |
644 | len ++; |
645 | switch(id) { |
645 | switch(id) { |
|
|
646 | case 0x18: |
|
|
647 | psiconv_progress(lev+3,off+len,"Going to skip an unknown setting"); |
|
|
648 | len ++; |
|
|
649 | break; |
646 | case 0x19: |
650 | case 0x19: |
647 | psiconv_progress(lev+3,off+len,"Going to read text color"); |
651 | psiconv_progress(lev+3,off+len,"Going to read text color"); |
648 | if ((res = psiconv_parse_color(buf,lev+3,off+len, &leng,&temp_color))) |
652 | if ((res = psiconv_parse_color(buf,lev+3,off+len, &leng,&temp_color))) |
649 | goto ERROR1; |
653 | goto ERROR1; |
650 | psiconv_free_color(result->color); |
654 | psiconv_free_color(result->color); |
… | |
… | |
656 | if ((res = psiconv_parse_color(buf,lev+2,off+len, &leng,&temp_color))) |
660 | if ((res = psiconv_parse_color(buf,lev+2,off+len, &leng,&temp_color))) |
657 | goto ERROR1; |
661 | goto ERROR1; |
658 | psiconv_free_color(result->back_color); |
662 | psiconv_free_color(result->back_color); |
659 | result->back_color = temp_color; |
663 | result->back_color = temp_color; |
660 | len += leng; |
664 | len += leng; |
|
|
665 | break; |
|
|
666 | case 0x1b: |
|
|
667 | psiconv_progress(lev+3,off+len,"Going to skip an unknown setting"); |
|
|
668 | len ++; |
661 | break; |
669 | break; |
662 | case 0x1c: |
670 | case 0x1c: |
663 | psiconv_progress(lev+3,off+len,"Going to read font size"); |
671 | psiconv_progress(lev+3,off+len,"Going to read font size"); |
664 | result->font_size = psiconv_read_size(buf,lev+3,off+len,&leng,&res); |
672 | result->font_size = psiconv_read_size(buf,lev+3,off+len,&leng,&res); |
665 | if (res) |
673 | if (res) |
… | |
… | |
716 | goto ERROR1; |
724 | goto ERROR1; |
717 | psiconv_free_font(result->font); |
725 | psiconv_free_font(result->font); |
718 | result->font = temp_font; |
726 | result->font = temp_font; |
719 | len += leng; |
727 | len += leng; |
720 | break; |
728 | break; |
|
|
729 | case 0x23: |
|
|
730 | psiconv_progress(lev+3,off+len,"Going to skip an unknown setting"); |
|
|
731 | len ++; |
|
|
732 | break; |
721 | case 0x24: |
733 | case 0x24: |
722 | psiconv_progress(lev+3,off+len, |
734 | psiconv_progress(lev+3,off+len, |
723 | "Going to read unknown code 0x24 (%02x expected)", 0); |
735 | "Going to read unknown code 0x24 (%02x expected)", 0); |
724 | temp = psiconv_read_u8(buf,lev+3,off+len,&res); |
736 | temp = psiconv_read_u8(buf,lev+3,off+len,&res); |
725 | if (res) |
737 | if (res) |