mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user