Previous 199869 Revisions Next

r37131 Sunday 12th April, 2015 at 10:00:58 UTC by Couriersud
Fix compile. (nw)
[src/osd/modules/font]font_sdl.c

trunk/src/osd/modules/font/font_sdl.c
r245642r245643
7575      osd_printf_verbose("Searching font %s in -%s\n", name.c_str(), OPTION_FONTPATH);
7676      //emu_file file(options().font_path(), OPEN_FLAG_READ);
7777      emu_file file(font_path, OPEN_FLAG_READ);
78      if (file.open(name) == FILERR_NONE)
78      if (file.open(name.c_str()) == FILERR_NONE)
7979      {
8080         astring full_name = file.fullpath();
8181         font = TTF_OpenFont_Magic(full_name, POINT_SIZE);
r245642r245643
187187TTF_Font * osd_font_sdl::TTF_OpenFont_Magic(astring name, int fsize)
188188{
189189   emu_file file(OPEN_FLAG_READ);
190   if (file.open(name) == FILERR_NONE)
190   if (file.open(name.c_str()) == FILERR_NONE)
191191   {
192192      unsigned char buffer[5] = { 0xff, 0xff, 0xff, 0xff, 0xff };
193193      unsigned char magic[5] = { 0x00, 0x01, 0x00, 0x00, 0x00 };
r245642r245643
201201bool osd_font_sdl::BDF_Check_Magic(astring name)
202202{
203203   emu_file file(OPEN_FLAG_READ);
204   if (file.open(name) == FILERR_NONE)
204   if (file.open(name.c_str()) == FILERR_NONE)
205205   {
206206      unsigned char buffer[9];
207207      unsigned char magic[9] = { 'S', 'T', 'A', 'R', 'T', 'F', 'O', 'N', 'T' };


Previous 199869 Revisions Next


© 1997-2024 The MAME Team