Commit bb429e8f authored by Richard Gobeille's avatar Richard Gobeille
Browse files

editor: clamp m32script line drawing color range to 255 instead of 15

parent c9503fc4
......@@ -3057,7 +3057,7 @@ dodefault:
}
drawlinepat = m32_drawlinepat;
editorDraw2dLine(xofs+x1,yofs+y1, xofs+x2,yofs+y2, col>=0?editorcolors[col&15]:((-col)&255));
editorDraw2dLine(xofs+x1,yofs+y1, xofs+x2,yofs+y2, col>=0?editorcolors[col&255]:((-col)&255));
drawlinepat = odrawlinepat;
continue;
}
......@@ -3093,7 +3093,7 @@ dodefault:
}
drawlinepat = m32_drawlinepat;
editorDraw2dCircle(xofs+x1, yofs+y1, r, eccen, col>=0?editorcolors[col&15]:((-col)&255));
editorDraw2dCircle(xofs+x1, yofs+y1, r, eccen, col>=0?editorcolors[col&255]:((-col)&255));
drawlinepat = odrawlinepat;
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment