1 | /* |
1 | /* |
2 | generate_layout.c - Part of psiconv, a PSION 5 file formats converter |
2 | generate_layout.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 2000-2004 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. |
… | |
… | |
93 | (value->kind == psiconv_border_double) ? |
93 | (value->kind == psiconv_border_double) ? |
94 | value->thickness:1.0/20.0))) |
94 | value->thickness:1.0/20.0))) |
95 | return res; |
95 | return res; |
96 | if ((res = psiconv_write_color(config,buf,lev+1,value->color))) |
96 | if ((res = psiconv_write_color(config,buf,lev+1,value->color))) |
97 | return res; |
97 | return res; |
98 | // Unknown byte |
98 | /* Unknown byte */ |
99 | return psiconv_write_u8(config,buf,lev+1,1); |
99 | return psiconv_write_u8(config,buf,lev+1,1); |
100 | } |
100 | } |
101 | |
101 | |
102 | int psiconv_write_bullet(const psiconv_config config, psiconv_buffer buf,int lev, const psiconv_bullet value) |
102 | int psiconv_write_bullet(const psiconv_config config, psiconv_buffer buf,int lev, const psiconv_bullet value) |
103 | { |
103 | { |