trunk/src/osd/modules/font/font_sdl.c
| r245642 | r245643 | |
| 75 | 75 | osd_printf_verbose("Searching font %s in -%s\n", name.c_str(), OPTION_FONTPATH); |
| 76 | 76 | //emu_file file(options().font_path(), OPEN_FLAG_READ); |
| 77 | 77 | emu_file file(font_path, OPEN_FLAG_READ); |
| 78 | | if (file.open(name) == FILERR_NONE) |
| 78 | if (file.open(name.c_str()) == FILERR_NONE) |
| 79 | 79 | { |
| 80 | 80 | astring full_name = file.fullpath(); |
| 81 | 81 | font = TTF_OpenFont_Magic(full_name, POINT_SIZE); |
| r245642 | r245643 | |
| 187 | 187 | TTF_Font * osd_font_sdl::TTF_OpenFont_Magic(astring name, int fsize) |
| 188 | 188 | { |
| 189 | 189 | emu_file file(OPEN_FLAG_READ); |
| 190 | | if (file.open(name) == FILERR_NONE) |
| 190 | if (file.open(name.c_str()) == FILERR_NONE) |
| 191 | 191 | { |
| 192 | 192 | unsigned char buffer[5] = { 0xff, 0xff, 0xff, 0xff, 0xff }; |
| 193 | 193 | unsigned char magic[5] = { 0x00, 0x01, 0x00, 0x00, 0x00 }; |
| r245642 | r245643 | |
| 201 | 201 | bool osd_font_sdl::BDF_Check_Magic(astring name) |
| 202 | 202 | { |
| 203 | 203 | emu_file file(OPEN_FLAG_READ); |
| 204 | | if (file.open(name) == FILERR_NONE) |
| 204 | if (file.open(name.c_str()) == FILERR_NONE) |
| 205 | 205 | { |
| 206 | 206 | unsigned char buffer[9]; |
| 207 | 207 | unsigned char magic[9] = { 'S', 'T', 'A', 'R', 'T', 'F', 'O', 'N', 'T' }; |