1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Showing objects

This commit is contained in:
nordsoft
2022-08-30 06:38:24 +04:00
parent ea3845e8dd
commit 3c062bae32
7 changed files with 765 additions and 20 deletions

View File

@@ -62,7 +62,7 @@ QImage BitmapHandler::loadH3PCX(ui8 * pcx, size_t size)
{
it = 0xC;
//auto bitmap = QBitmap::fromData(qsize, pcx + it);
QImage image(pcx + it, width, height, QImage::Format_MonoLSB);
QImage image(pcx + it, width, height, QImage::Format_Indexed8);
//palette - last 256*3 bytes
QVector<QRgb> colorTable;