implemented additional requirement

This commit is contained in:
Geoffray Levasseur committed 2026-11-03 11:59:40 +01:00
1 parent 84eea05553
commit 9212be15f4
2 files changed
+18

No files matched your search

+3
View File
@@ -113,6 +113,9 @@ enum class RasterOp { Copy, And, Paint, Invert };
void bitBltBitmap(Dpi::Bitmap &dest, int x, int y, int width, int height,
Dpi::Bitmap &src, int xSrc, int ySrc, RasterOp rop = RasterOp::Copy);
void unshareBitmap(Dpi::Bitmap &bitmap);
// Replaces every pixel equal to oldColor with newColor within the given
// rectangle (both already-resolved QColors, not raw Delphi ints).
void bitmapReplaceColor(Dpi::Bitmap &dst, int x, int y, int width, int height, QColor oldColor, QColor newColor);
// Draws a masked sprite (AND then OR, via an internal scratch buffer since
// Qt's QPainter has no raster-op compositing against the live canvas).