From 456c987218e3a90884f836956609a76ad49abbee Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Thu, 30 Jun 2016 21:54:35 +0600 Subject: [PATCH] Use transparent white fill color for drawing pixmaps, not black. Textures can interact with selected color. This commit makes it a no-op. --- src/draw.cpp | 2 +- src/render/render.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw.cpp b/src/draw.cpp index 6ece2ec..a772987 100644 --- a/src/draw.cpp +++ b/src/draw.cpp @@ -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); diff --git a/src/render/render.cpp b/src/render/render.cpp index a1e14dd..e44a1e0 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -215,7 +215,7 @@ void UiCanvas::DrawRect(int l, int r, int t, int b, void UiCanvas::DrawPixmap(std::shared_ptr 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,