mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 22:03:24 +00:00
Remove feature checking
We needed this in Gtk version as we were using a system font to show the stars and that was missing on some ancient Windows versions. With the Qt version we actually draw the stars so this has become obsolete. Suggested-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
edd2db6886
commit
4e6dd75d11
4 changed files with 0 additions and 31 deletions
6
dive.h
6
dive.h
|
@ -700,13 +700,7 @@ const char *monthname(int mon);
|
||||||
#define FIVE_STARS UTF8_BLACKSTAR UTF8_BLACKSTAR UTF8_BLACKSTAR UTF8_BLACKSTAR UTF8_BLACKSTAR
|
#define FIVE_STARS UTF8_BLACKSTAR UTF8_BLACKSTAR UTF8_BLACKSTAR UTF8_BLACKSTAR UTF8_BLACKSTAR
|
||||||
extern const char *star_strings[];
|
extern const char *star_strings[];
|
||||||
|
|
||||||
/* enum holding list of OS features */
|
|
||||||
typedef enum {
|
|
||||||
UTF8_FONT_WITH_STARS
|
|
||||||
} os_feature_t;
|
|
||||||
|
|
||||||
extern const char *existing_filename;
|
extern const char *existing_filename;
|
||||||
extern bool subsurface_os_feature_available(os_feature_t);
|
|
||||||
extern void subsurface_command_line_init(int *, char ***);
|
extern void subsurface_command_line_init(int *, char ***);
|
||||||
extern void subsurface_command_line_exit(int *, char ***);
|
extern void subsurface_command_line_exit(int *, char ***);
|
||||||
|
|
||||||
|
|
5
linux.c
5
linux.c
|
@ -33,11 +33,6 @@ void subsurface_command_line_exit(int *argc, char ***argv)
|
||||||
/* this is a no-op */
|
/* this is a no-op */
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subsurface_os_feature_available(os_feature_t f)
|
|
||||||
{
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
int enumerate_devices (device_callback_t callback, void *userdata)
|
int enumerate_devices (device_callback_t callback, void *userdata)
|
||||||
{
|
{
|
||||||
int index = -1;
|
int index = -1;
|
||||||
|
|
5
macos.c
5
macos.c
|
@ -48,11 +48,6 @@ void subsurface_command_line_exit(int *argc, char ***argv)
|
||||||
/* this is a no-op */
|
/* this is a no-op */
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subsurface_os_feature_available(os_feature_t f)
|
|
||||||
{
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
int enumerate_devices (device_callback_t callback, void *userdata)
|
int enumerate_devices (device_callback_t callback, void *userdata)
|
||||||
{
|
{
|
||||||
int index = -1;
|
int index = -1;
|
||||||
|
|
15
windows.c
15
windows.c
|
@ -89,21 +89,6 @@ void subsurface_command_line_exit(int *argc, char ***argv)
|
||||||
free(*argv);
|
free(*argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check if we are running a newer OS version */
|
|
||||||
bool 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int enumerate_devices (device_callback_t callback, void *userdata)
|
int enumerate_devices (device_callback_t callback, void *userdata)
|
||||||
{
|
{
|
||||||
// Open the registry key.
|
// Open the registry key.
|
||||||
|
|
Loading…
Add table
Reference in a new issue