- const wxString fullscreen_filename = GetDefaultDirectoryAbsPath() + _T("fullscreen.png");
-
- wxBitmap fullscreen = AutoCaptureMechanism::Capture(0, 0, screenWidth, screenHeight);
+ wxBitmap fullscreen(1, 1);
+ AutoCaptureMechanism::Capture(&fullscreen, 0, 0, screenWidth, screenHeight);