Flatten filament preview bitmaps to opaque RGB for native labels

This commit is contained in:
Noisyfox committed 2026-10-15 23:25:23 +08:00
1 parent 78de3ad9cd
commit 206552674b
7 files changed
+69 -11

No files matched your search

+1 -1
View File
@@ -1873,7 +1873,7 @@ void ColorPicker::render(wxDC& dc)
#ifdef __WXMSW__
wxSize size = GetSize();
wxMemoryDC memdc;
wxBitmap bmp(size.x, size.y);
wxBitmap bmp(size.x, size.y, 24);
memdc.SelectObject(bmp);
memdc.Blit({ 0, 0 }, size, &dc, { 0, 0 });