1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 08:58:06 +02:00

Bug 1378 - Screenshot Tools images are mostly white background only.

Use 24 bit bitmap rather than default which is 32 bit.  Seems to be a wxWidgets 3.0.2 bug with ScreenDC.
This commit is contained in:
James Crook 2016-06-23 11:33:58 +01:00
parent c1ca055fa4
commit 6bc7924b16

View File

@ -170,7 +170,11 @@ void ScreenshotCommand::Capture(const wxString &filename,
int screenW, screenH;
wxDisplaySize(&screenW, &screenH);
wxBitmap full(screenW, screenH);
// Bug 1378 workaround.
// wx 3.0.2 has a bug in Blit from ScreenDC where in default mode
// much is drawn transparent - including for example black text!
// Forcing 24 bit here is a workaround.
wxBitmap full(screenW, screenH, 24);
wxScreenDC screenDC;
wxMemoryDC fullDC;