1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 11:57:40 +00:00

moved backbrightness edit to colors; it is based on modelcolor rather than backcolor

This commit is contained in:
Zeno Rogue
2018-11-11 12:21:22 +01:00
parent 9ca5fafa9b
commit f1b395ce52
2 changed files with 4 additions and 7 deletions

View File

@@ -1293,7 +1293,7 @@ color_t darken_color(color_t& color, bool outline) {
if(outline && alpha < 255)
return color - alpha + int(backbrightness * alpha);
else
return (gradient(backcolor, color>>8, 0, backbrightness, 1)<<8) | 0xFF;
return (gradient(modelcolor>>8, color>>8, 0, backbrightness, 1)<<8) | 0xFF;
}
}