From 4bebd71198015701d55020b09311057af4ce57d1 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 6 May 2024 04:27:28 +0200 Subject: [PATCH] make editor outline not so dull, closer to what it was --- BBGE/TileRender.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/BBGE/TileRender.cpp b/BBGE/TileRender.cpp index f5ecc7b..041d0cb 100644 --- a/BBGE/TileRender.cpp +++ b/BBGE/TileRender.cpp @@ -36,7 +36,7 @@ TileRender::~TileRender() // shamelessly ripped from paint.net default palette static const Vector s_tagColors[] = { - /* 0 */ Vector(0.5f, 0.5f, 0.5f), + /* 0 */ Vector(1,1,1), /* 1 */ Vector(1,0,0), /* 2 */ Vector(1, 0.415686f, 0), /* 3 */ Vector(1,0.847059f, 0), @@ -209,10 +209,8 @@ void TileRender::onRender(const RenderState& rs) const if(renderBorders) { - float c = (tile.flags & TILEFLAG_SELECTED) ? 1.0f : 0.5f; - Vector color(c,c,c); - color *= getTagColor(tile.tag); - + const float c = (tile.flags & TILEFLAG_SELECTED) ? 1.0f : 0.5f; + const Vector color = getTagColor(tile.tag) * c; glColor4f(color.x, color.y, color.z, 1.0f); core->getDefaultQuadBorderBuf()->apply(); glPointSize(16);