Mercurial > hg > svcore
diff system/System.h @ 1883:e5d0ea9ac8f1
OK I give in, we are going to have to put this in a separate DLL so we can deploy a version on Win7 that doesn't have the WinRT dependency
author | Chris Cannam |
---|---|
date | Tue, 21 Jul 2020 13:59:14 +0100 |
parents | fc18ce2d99d7 |
children |
line wrap: on
line diff
--- a/system/System.h Thu Jun 25 12:20:20 2020 +0100 +++ b/system/System.h Tue Jul 21 13:59:14 2020 +0100 @@ -163,6 +163,8 @@ // if unknown. (Hence signed return type) extern ssize_t GetDiscSpaceMBAvailable(const char *path); +extern "C" { + // Return true if the OS desktop is set to use a dark mode // theme. Return false if it is set to a light theme or if the theme // is unknown. @@ -172,7 +174,9 @@ // the current theme; if so, also return by reference the r, g, and b // components of the colour (range 0-255). Return false if we can't // query such a thing. -extern bool OSQueryAccentColour(int &r, int &g, int &b); +extern bool OSQueryAccentColour(int *r, int *g, int *b); + +} extern void StoreStartupLocale(); extern void RestoreStartupLocale();