summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2018-06-20 21:45:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-21 06:28:39 +0900
commitdcb663e4073500030f86dcdc2643da16b4064ed5 (patch)
treeeb54f291f8dd08475a08f09cef94d944b14dcaff
parent38bf351cc180b776172229d2144510cec21d5bcb (diff)
downloadsubsurface-dcb663e4073500030f86dcdc2643da16b4064ed5.tar.gz
Revert "cleanup: remove empty function"
This broke our hook to plumb in our usb open function into libusb, so this broke ftdi based downloads. This reverts commit e4530cd5ef38e6120f451daf1a758b38b70a6f1c. Signed-off-by: Anton Lundin <glance@acc.umu.se>
-rw-r--r--core/linux.c5
-rw-r--r--core/pref.h1
-rw-r--r--core/subsurfacestartup.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/core/linux.c b/core/linux.c
index 446bbeaa1..b8d88e9e5 100644
--- a/core/linux.c
+++ b/core/linux.c
@@ -20,6 +20,11 @@ const char linux_system_divelist_default_font[] = "Sans";
const char *system_divelist_default_font = linux_system_divelist_default_font;
double system_divelist_default_font_size = -1.0;
+void subsurface_OS_pref_setup(void)
+{
+ // nothing
+}
+
bool subsurface_ignore_font(const char *font)
{
// there are no old default fonts to ignore
diff --git a/core/pref.h b/core/pref.h
index 8ca763ce8..6eae3aae5 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -190,6 +190,7 @@ extern double system_divelist_default_font_size;
extern const char *system_default_directory(void);
extern const char *system_default_filename();
extern bool subsurface_ignore_font(const char *font);
+extern void subsurface_OS_pref_setup();
extern void copy_prefs(struct preferences *src, struct preferences *dest);
#ifdef __cplusplus
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index 65b30e7d6..508fda73c 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -284,6 +284,7 @@ void setup_system_prefs(void)
{
const char *env;
+ subsurface_OS_pref_setup();
default_prefs.divelist_font = strdup(system_divelist_default_font);
default_prefs.font_size = system_divelist_default_font_size;