feat: legible ReaSampler 9000 editor — bigger knobs, ms time constants, per-ring double-click reset, and an antialiased draw pass
This commit is contained in:
@@ -145,6 +145,14 @@ void ReaSamplerEditor::paintChrome(LICE_IBitmap* bmp, const FaceLayout& fl, bool
|
||||
const LICE_pixel ink = toLice(roleColor(buttonLabelRole(st)));
|
||||
LICE_FillTriangle(bmp, g.leftX, g.topY, g.leftX, g.bottomY, g.apexX, g.apexY,
|
||||
ink, 1.0f, 0);
|
||||
// LICE_FillTriangle takes no aa flag, so its two sloped edges come out stepped.
|
||||
// Re-stroke them in the same ink: an AA line over the fill's own boundary softens
|
||||
// the step without changing the shape. The vertical edge needs none.
|
||||
const float lx = static_cast<float>(g.leftX);
|
||||
const float ax = static_cast<float>(g.apexX);
|
||||
const float ay = static_cast<float>(g.apexY);
|
||||
LICE_FLine(bmp, lx, static_cast<float>(g.topY), ax, ay, ink, 1.0f, 0, true);
|
||||
LICE_FLine(bmp, lx, static_cast<float>(g.bottomY), ax, ay, ink, 1.0f, 0, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user