Use transparent white fill color for drawing pixmaps, not black.
Textures can interact with selected color. This commit makes it a no-op.
This commit is contained in:
parent
e9725bd350
commit
456c987218
@ -607,7 +607,7 @@ void GraphicsWindow::Draw(Canvas *canvas) {
|
||||
|
||||
// Place the background at the very back of the Z order.
|
||||
Canvas::Fill fillBackground = {};
|
||||
fillBackground.color = RGBi(0, 0, 0);
|
||||
fillBackground.color = RgbaColor::From(255, 255, 255, 255);
|
||||
fillBackground.layer = Canvas::Layer::BACK;
|
||||
Canvas::hFill hcfBackground = canvas->GetFill(fillBackground);
|
||||
|
||||
|
@ -215,7 +215,7 @@ void UiCanvas::DrawRect(int l, int r, int t, int b,
|
||||
void UiCanvas::DrawPixmap(std::shared_ptr<const Pixmap> pm, int x, int y) {
|
||||
Canvas::Fill fill = {};
|
||||
fill.layer = Canvas::Layer::FRONT;
|
||||
fill.color = { 0, 0, 0, 255 };
|
||||
fill.color = { 255, 255, 255, 255 };
|
||||
Canvas::hFill hcf = canvas->GetFill(fill);
|
||||
|
||||
canvas->DrawPixmap(pm,
|
||||
|
Loading…
Reference in New Issue
Block a user