Removed dependancy on wx/bitmap.h from autocapture.h.
Fixed issue with Union() improperly generating a combined bitmap from two source bitmaps (only shown on Mac). Replaced old wxWidgets logo with the new one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -82,9 +82,10 @@ void ScreenshotFrame::OnCaptureFullScreen(wxCommandEvent& WXUNUSED(event))
|
||||
wxCoord screenWidth, screenHeight;
|
||||
dcScreen.GetSize(&screenWidth, &screenHeight);
|
||||
|
||||
wxBitmap fullscreen = AutoCaptureMechanism::Capture(0, 0, screenWidth, screenHeight);
|
||||
wxBitmap fullscreen(0, 0);
|
||||
AutoCaptureMechanism::Capture(&fullscreen, 0, 0, screenWidth, screenHeight);
|
||||
|
||||
AutoCaptureMechanism::Save(fullscreen, _T("fullscreen"));
|
||||
AutoCaptureMechanism::Save(&fullscreen, _T("fullscreen"));
|
||||
|
||||
wxMessageBox(_("A screenshot of the entire screen was saved as:\n\n ")
|
||||
+ AutoCaptureMechanism::GetDefaultDirectoryAbsPath() + _T("fullscreen.png"),
|
||||
|
Reference in New Issue
Block a user