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-2004 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2014 Frodo Looijaard <frodo@frodo.looijaard.name> |
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. |
… | |
… | |
91 | fontlen = psiconv_read_u8(config,buf,lev+2,off,&res); |
91 | fontlen = psiconv_read_u8(config,buf,lev+2,off,&res); |
92 | if (res) |
92 | if (res) |
93 | goto ERROR2; |
93 | goto ERROR2; |
94 | len = 1; |
94 | len = 1; |
95 | |
95 | |
96 | (*result)->name = psiconv_read_charlist(config,buf,lev+2,off, fontlen-1,&res); |
96 | (*result)->name = psiconv_read_charlist(config,buf,lev+2,off+len, fontlen-1,&res); |
97 | if (res) |
97 | if (res) |
98 | goto ERROR2; |
98 | goto ERROR2; |
99 | len += fontlen - 1; |
99 | len += fontlen - 1; |
100 | |
100 | |
101 | (*result)->screenfont = psiconv_read_u8(config,buf,lev+2,off+len,&res); |
101 | (*result)->screenfont = psiconv_read_u8(config,buf,lev+2,off+len,&res); |