[PATCH] Fix android font config

Anton Lundin glance at acc.umu.se
Sun Aug 24 14:43:42 PDT 2014


In e893f6bd9db696a1d647b796138233152ca290fa ("Use the Windows default
font on Windows 7 and 8/8.1") font config was changed, but the android
font config wasn't changed. This updates the android font config to
match the new way.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 android.cpp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/android.cpp b/android.cpp
index 93f2673..66bc6cf 100644
--- a/android.cpp
+++ b/android.cpp
@@ -11,9 +11,15 @@
 
 extern "C" {
 
-const char system_divelist_default_font[] = "Roboto";
+const char android_system_divelist_default_font[] = "Roboto";
+const char *system_divelist_default_font = android_system_divelist_default_font;
 const int system_divelist_default_font_size = 8;
 
+void subsurface_OS_pref_setup(void)
+{
+	// nothing
+}
+
 const char *system_default_filename(void)
 {
 	/* Replace this when QtCore/QStandardPaths getExternalStorageDirectory landed */
-- 
1.9.1



More information about the subsurface mailing list