final ports and first fixes

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 11:55:54 +01:00
1 parent 77690cbd96
commit 6f3556009a
23 files changed
+2302 -41

No files matched your search

+2 -3
View File
@@ -58,9 +58,8 @@ public:
};
// TGraphicSet equivalent: a sprite sheet (data) with its transparency mask
// (mask), plus a set of named item rectangles. Persisted as XML, though not
// in the same node layout as the original (custom WriteString/WriteInteger
// helper), so files are not binary-compatible with the original .grs format.
// (mask), plus a set of named item rectangles. Persisted as XML in the
// original .grs layout (each item field a child element).
class GraphicSet {
public:
GraphicSet() = default;
+2
View File
@@ -250,5 +250,7 @@ void paintLogo(Dpi::Canvas &canvas, int x, int y, QColor lightColor, QColor shad
// ScreenTools.pas's InitOrnament(): recolours the ornament sprite to the
// current texture's bevel colours (once).
void initOrnament();
// ScreenTools.pas's DarkenImage(): subtracts `change` from every colour channel (clamped at 0).
void darkenImage(Dpi::Bitmap &bitmap, int change);
} // namespace Cevo
+3 -1
View File
@@ -59,7 +59,9 @@ public:
private:
QImage *m_image = nullptr;
int m_x = 0;
int m_baseX = 0; // position of the pointer's origin in the image
int m_baseY = 0;
int m_x = 0; // current position, relative to the origin
int m_y = 0;
int m_width = 0;
int m_height = 0;