forked from 1b-agent/opencadstudio-upstream
fix(plot): true-color hatch fills plot in their own colour, not black
Fixes #1417 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b365e51620
commit
ac8a9c38db
1 file changed
+3
@@ -1291,6 +1291,9 @@ fn emit_hatch(
|
||||
g = 1.0;
|
||||
b = 1.0;
|
||||
} else if !color_overridden
|
||||
// `aci == 0` is an explicit true colour: it plots as drawn, only
|
||||
// indexed colours meant for the dark screen are adapted. (#1417)
|
||||
&& hatch.aci != 0
|
||||
&& !(hatch.aci == 7 && matches!(hatch.pattern, HatchPattern::Solid))
|
||||
{
|
||||
let is_light = r > 0.80 && g > 0.80 && b > 0.80;
|
||||
|
||||
Reference in new issue
Block a user