Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Comment thread
realSquidCoder marked this conversation as resolved.
draw_text_border(font, color, x, y, flags, DF2UTF(report->text).c_str());
}

Expand Down
3 changes: 3 additions & 0 deletions commonTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down