BLADERUNNER: Fix slider artifacts in Android port

Alpha was set incorrectly to 0 and previous GLES was visible
This commit is contained in:
Peter Kohaut 2019-07-12 21:55:37 +02:00
parent 4dc9752d2a
commit e67ec0dbe1

View File

@ -117,7 +117,7 @@ void UISlider::draw(Graphics::Surface &surface) {
uint16 color = surface.format.RGBToColor(kColors[colorIndex].r, kColors[colorIndex].g, kColors[colorIndex].b);
if ((striding + x) & 1 || x == sliderX) {
color = 0;
color = surface.format.RGBToColor(0, 0, 0);
}
surface.vLine(x, _rect.top + 1, _rect.bottom - 2, color);