mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 09:28:07 +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:
parent
c1ca055fa4
commit
6bc7924b16
@ -170,7 +170,11 @@ void ScreenshotCommand::Capture(const wxString &filename,
|
|||||||
|
|
||||||
int screenW, screenH;
|
int screenW, screenH;
|
||||||
wxDisplaySize(&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;
|
wxScreenDC screenDC;
|
||||||
wxMemoryDC fullDC;
|
wxMemoryDC fullDC;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user