summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/font/font_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/font/font_windows.c')
-rw-r--r--src/osd/modules/font/font_windows.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/modules/font/font_windows.c b/src/osd/modules/font/font_windows.c
index 9056b98054a..5b0b57823ab 100644
--- a/src/osd/modules/font/font_windows.c
+++ b/src/osd/modules/font/font_windows.c
@@ -19,7 +19,7 @@
#include "modules/osdmodule.h"
#include "strconv.h"
-#include "astring.h"
+#include "corestr.h"
#include "corealloc.h"
#include "fileio.h"
@@ -46,10 +46,10 @@ private:
bool osd_font_windows::open(const char *font_path, const char *_name, int &height)
{
// accept qualifiers from the name
- astring name(_name);
- if (name == "default") name = "Tahoma";
- bool bold = (name.replace(0, "[B]", "") + name.replace(0, "[b]", "") > 0);
- bool italic = (name.replace(0, "[I]", "") + name.replace(0, "[i]", "") > 0);
+ std::string name(_name);
+ if (name.compare("default")==0) name = "Tahoma";
+ bool bold = (strreplace(name, "[B]", "") + strreplace(name, "[b]", "") > 0);
+ bool italic = (strreplace(name, "[I]", "") + strreplace(name, "[i]", "") > 0);
// build a basic LOGFONT description of what we want
LOGFONT logfont;