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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user