BLF: replace global aa pref w/ monochrome flag

Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
This commit is contained in:
2018-07-31 16:57:05 +10:00
parent 18888b7b0c
commit 21f61cbe73
7 changed files with 16 additions and 28 deletions

View File

@@ -531,6 +531,13 @@ void uiStyleInit(void)
flag_disable |= BLF_HINTING;
}
if (U.text_render & USER_TEXT_DISABLE_AA) {
flag_enable |= BLF_MONOCHROME;
}
else {
flag_disable |= BLF_MONOCHROME;
}
for (font = U.uifonts.first; font; font = font->next) {
if (font->blf_id != -1) {
BLF_enable(font->blf_id, flag_enable);