summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/windows.c b/windows.c
index 1c8cd0a01..2127614bd 100644
--- a/windows.c
+++ b/windows.c
@@ -223,3 +223,18 @@ void subsurface_command_line_exit(gint *argc, gchar ***argv)
g_free((*argv)[i]);
g_free(*argv);
}
+
+/* check if we are running a newer OS version */
+gboolean subsurface_os_feature_available(os_feature_t f)
+{
+ switch (f) {
+ case UTF8_FONT_WITH_STARS:
+ if ((GetVersion() & 0xff) < 6)
+ return FALSE; /* version less than Vista */
+ else
+ return TRUE;
+ break;
+ default:
+ return TRUE;
+ }
+}