1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00

Added Color class to replace SDL_Color

This commit is contained in:
Ivan Savenko
2023-01-30 00:12:43 +02:00
parent 07dc2e1c48
commit 42df5626d9
23 changed files with 137 additions and 68 deletions

View File

@@ -433,7 +433,7 @@ QRgb MapHandler::getTileColor(int x, int y, int z)
if (tile.blocked && (!tile.visitable))
color = tile.terType->minimapBlocked;
return qRgb(color[0], color[1], color[2]);
return qRgb(color.r, color.g, color.b);
}
void MapHandler::drawMinimapTile(QPainter & painter, int x, int y, int z)