diff --git a/GUI.cpp b/GUI.cpp index 66b717d4..31bac874 100644 --- a/GUI.cpp +++ b/GUI.cpp @@ -359,7 +359,7 @@ namespace { auto& ssConfig = stonesenseState.ssConfig; - ALLEGRO_COLOR color = ssConfig.config.colors.getDfColor(report->color, ssConfig.config.useDfColors); + ALLEGRO_COLOR color = ssConfig.config.colors.getDfColor(report->color, true, ssConfig.config.useDfColors); draw_text_border(font, color, x, y, flags, DF2UTF(report->text).c_str()); } diff --git a/commonTypes.h b/commonTypes.h index 8156d1df..74f3fc6b 100644 --- a/commonTypes.h +++ b/commonTypes.h @@ -187,6 +187,9 @@ class dfColors ALLEGRO_COLOR getDfColor(int color, int bright, bool useDfColors) const { return getDfColor(color + (bright * 8), useDfColors); } + ALLEGRO_COLOR getDfColor(int color, bool bright, bool useDfColors) const { + return getDfColor(color + ((bright?1:0) * 8), useDfColors); + } }; // this is required because gcc 10 can't handle a dependently typed non-type template argu,ent diff --git a/docs/changelog.txt b/docs/changelog.txt index 1c488263..0b8626f9 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -40,6 +40,7 @@ Template for new versions: ## New Features ## Fixes +- `stonesense`: fixed the announcements not using the bright bool (now matches vanilla DF colors) ## Misc Improvements