mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 04:14:20 +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)
|
||||
{
|
||||
WMUserDefaults *defaults;
|
||||
Bool aaIsSet = False;
|
||||
|
||||
memset(&WINGsConfiguration, 0, sizeof(_WINGsConfiguration));
|
||||
|
||||
@@ -44,13 +45,19 @@ void W_ReadConfigurations(void)
|
||||
|
||||
if (defaults) {
|
||||
char *buttonName;
|
||||
WMPropList *val;
|
||||
unsigned button;
|
||||
|
||||
WINGsConfiguration.systemFont = WMGetUDStringForKey(defaults, "SystemFont");
|
||||
|
||||
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");
|
||||
|
||||
@@ -91,6 +98,9 @@ void W_ReadConfigurations(void)
|
||||
if (WINGsConfiguration.defaultFontSize == 0) {
|
||||
WINGsConfiguration.defaultFontSize = DEFAULT_FONT_SIZE;
|
||||
}
|
||||
if (!aaIsSet) {
|
||||
WINGsConfiguration.antialiasedText = True;
|
||||
}
|
||||
if (!WINGsConfiguration.floppyPath) {
|
||||
WINGsConfiguration.floppyPath = FLOPPY_PATH;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user