mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 05:14:13 +01:00
Turn anti-aliasing on by default.
This commit is contained in:
committed by
Carlos R. Mafra
parent
366cb8367b
commit
7793bb9d67
@@ -37,6 +37,7 @@ static unsigned getButtonWithName(const char *name, unsigned defaultButton)
|
|||||||
void W_ReadConfigurations(void)
|
void W_ReadConfigurations(void)
|
||||||
{
|
{
|
||||||
WMUserDefaults *defaults;
|
WMUserDefaults *defaults;
|
||||||
|
Bool aaIsSet = False;
|
||||||
|
|
||||||
memset(&WINGsConfiguration, 0, sizeof(_WINGsConfiguration));
|
memset(&WINGsConfiguration, 0, sizeof(_WINGsConfiguration));
|
||||||
|
|
||||||
@@ -44,13 +45,19 @@ void W_ReadConfigurations(void)
|
|||||||
|
|
||||||
if (defaults) {
|
if (defaults) {
|
||||||
char *buttonName;
|
char *buttonName;
|
||||||
|
WMPropList *val;
|
||||||
unsigned button;
|
unsigned button;
|
||||||
|
|
||||||
WINGsConfiguration.systemFont = WMGetUDStringForKey(defaults, "SystemFont");
|
WINGsConfiguration.systemFont = WMGetUDStringForKey(defaults, "SystemFont");
|
||||||
|
|
||||||
WINGsConfiguration.boldSystemFont = WMGetUDStringForKey(defaults, "BoldSystemFont");
|
WINGsConfiguration.boldSystemFont = WMGetUDStringForKey(defaults, "BoldSystemFont");
|
||||||
|
|
||||||
WINGsConfiguration.antialiasedText = WMGetUDBoolForKey(defaults, "AntialiasedText");
|
val = WMGetUDObjectForKey(defaults, "AntialiasedText");
|
||||||
|
if (val && WMIsPLString(val) && WMGetFromPLString(val)) {
|
||||||
|
aaIsSet = True;
|
||||||
|
WINGsConfiguration.antialiasedText =
|
||||||
|
WMGetUDBoolForKey(defaults, "AntialiasedText");
|
||||||
|
}
|
||||||
|
|
||||||
WINGsConfiguration.doubleClickDelay = WMGetUDIntegerForKey(defaults, "DoubleClickTime");
|
WINGsConfiguration.doubleClickDelay = WMGetUDIntegerForKey(defaults, "DoubleClickTime");
|
||||||
|
|
||||||
@@ -91,6 +98,9 @@ void W_ReadConfigurations(void)
|
|||||||
if (WINGsConfiguration.defaultFontSize == 0) {
|
if (WINGsConfiguration.defaultFontSize == 0) {
|
||||||
WINGsConfiguration.defaultFontSize = DEFAULT_FONT_SIZE;
|
WINGsConfiguration.defaultFontSize = DEFAULT_FONT_SIZE;
|
||||||
}
|
}
|
||||||
|
if (!aaIsSet) {
|
||||||
|
WINGsConfiguration.antialiasedText = True;
|
||||||
|
}
|
||||||
if (!WINGsConfiguration.floppyPath) {
|
if (!WINGsConfiguration.floppyPath) {
|
||||||
WINGsConfiguration.floppyPath = FLOPPY_PATH;
|
WINGsConfiguration.floppyPath = FLOPPY_PATH;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user