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:
EvilSpirit 2016-06-30 21:54:35 +06:00 committed by whitequark
parent e9725bd350
commit 456c987218
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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,