summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-03-20 09:53:59 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-03-20 09:53:59 +0100
commit7cd40eb58d8f51d66b57d38a7c8b2baf15109b55 (patch)
treefac95e3246ef11f5d4ab4b203f5213c5abd5124c
parent593803fb489a8066a0a17629e80208ac5baeb53d (diff)
Added uismall.bdc and way to load it for those that wish to use it still (nw)
-rw-r--r--.gitignore1
-rw-r--r--src/emu/rendfont.cpp20
-rw-r--r--uismall.bdcbin0 -> 3772 bytes
3 files changed, 20 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 5256e5fea85..b5573638381 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,6 +31,7 @@
!/makefile
!/mame.doxygen
!/*.md
+!/*.bdc
!/LICENSE
/.idea
regtests/chdman/temp
diff --git a/src/emu/rendfont.cpp b/src/emu/rendfont.cpp
index bcd1ca35d78..24272eb7ef1 100644
--- a/src/emu/rendfont.cpp
+++ b/src/emu/rendfont.cpp
@@ -132,7 +132,25 @@ render_font::render_font(render_manager &manager, const char *filename)
// if this is an OSD font, we're done
if (filename != nullptr)
- {
+ {
+ // attempt to open the cached version of the font
+ {
+ emu_file cachefile(manager.machine().options().font_path(), OPEN_FLAG_READ);
+ osd_file::error filerr = cachefile.open(filename);
+ if (filerr == osd_file::error::NONE)
+ {
+ // if we have a cached version, load it
+ bool result = load_cached(cachefile, 0);
+
+ // if that worked, we're done
+ if (result)
+ {
+ render_font_command_glyph();
+ return;
+ }
+ }
+ }
+
m_osdfont = manager.machine().osd().font_alloc();
if (m_osdfont)
{
diff --git a/uismall.bdc b/uismall.bdc
new file mode 100644
index 00000000000..4dc1703dbea
--- /dev/null
+++ b/uismall.bdc
Binary files differ