Skip to content

Commit

Permalink
fix(RimeWithWeasel): make the blended color more visiable to fix issu…
Browse files Browse the repository at this point in the history
…e like rime#1405
  • Loading branch information
fxliang committed Jan 21, 2025
1 parent 8b95887 commit ba90f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ static inline COLORREF blend_colors(COLORREF fcolor, COLORREF bcolor) {
return RGB((GetRValue(fcolor) * 2 + GetRValue(bcolor)) / 3,
(GetGValue(fcolor) * 2 + GetGValue(bcolor)) / 3,
(GetBValue(fcolor) * 2 + GetBValue(bcolor)) / 3) |
((((fcolor >> 24) + (bcolor >> 24) / 2) << 24));
((((fcolor >> 24) * 2 + (bcolor >> 24)) / 3) << 24);
}
// convertions from color format to COLOR_ABGR
static inline int ConvertColorToAbgr(int color, ColorFormat fmt = COLOR_ABGR) {
Expand Down

0 comments on commit ba90f36

Please sign in to comment.