Browse Source

Address code review: use Palette constant instead of hardcoded values

Co-authored-by: djeada <[email protected]>
copilot-swe-agent[bot] 3 days ago
parent
commit
c933ab7316
1 changed files with 3 additions and 3 deletions
  1. 3 3
      game/map/minimap/minimap_generator.cpp

+ 3 - 3
game/map/minimap/minimap_generator.cpp

@@ -113,9 +113,9 @@ auto MinimapGenerator::world_to_pixel_size(
 }
 
 void MinimapGenerator::render_parchment_background(QImage &image) {
-  const int BASE_R = 235;
-  const int BASE_G = 220;
-  const int BASE_B = 190;
+  const int BASE_R = Palette::PARCHMENT_BASE.red();
+  const int BASE_G = Palette::PARCHMENT_BASE.green();
+  const int BASE_B = Palette::PARCHMENT_BASE.blue();
 
   for (int y = 0; y < image.height(); ++y) {
     auto *scanline = reinterpret_cast<uint32_t *>(image.scanLine(y));