Skip to content

Commit fd124d7

Browse files
lubertfuzziqersoftware
authored andcommitted
Draw PICT on transparent bg
1 parent feedb7f commit fd124d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ResourceFile.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,9 +2352,9 @@ class QuickDrawResourceDasmPort : public QuickDrawPortInterface {
23522352

23532353
ImageRGBA8888N& image() {
23542354
if (this->img.empty()) {
2355-
// PICTs are rendered into an initially white field, so we fill the canvas
2356-
// with white in case the PICT doesn't actually write all the pixels.
2357-
this->img = ImageRGBA8888N(this->bounds.width(), this->bounds.height(), 0xFFFFFFFF);
2355+
// Initialize with transparent so undrawn areas blend with background,
2356+
// matching classic Mac DrawPicture behavior.
2357+
this->img = ImageRGBA8888N(this->bounds.width(), this->bounds.height(), 0x00000000);
23582358
}
23592359
return this->img;
23602360
}

0 commit comments

Comments
 (0)