head 1.2; access; symbols pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @// @; 1.2 date 2025.03.30.15.14.40; author adam; state dead; branches; next 1.1; commitid d5kRe7wGRSKOu6PF; 1.1 date 2024.12.26.18.10.23; author adam; state Exp; branches; next ; commitid nxk5Z8qo6vaFu2DF; desc @@ 1.2 log @wxGTK32: updated to 3.2.7 3.2.7 This release contains more than a hundred bug fixes and improvements. Some of the most important fixes are: Build fixes for gcc 14 Fix build with macOS 15 SDK Many fixes to key event generation in wxGTK Avoid repaint problems when using wxWindow::Update() with Wayland Fix crashes when using wxWebRequest with libcurl New in this release: Add wxNO_UNUSED_VARIABLES to opt-in into getting helpful warnings Add wxApp::SetErrorExitCode() to better handle initialization errors Other changes include: More high DPI fixes in wxMSW Improve wxInfoBar appearance Fix possible crash during session termination in wxMSW Wayland fixes to copy-pasting Fix truncating labels of newly added wxNotebook pages in wxOSX Fix Z-order of auto-complete popup of wxStyledTextCtrl in wxOSX Fix buffer read overflow when compiling RE ending with backslash Make wxTempFile::Commit() and wxRenameFile() really atomic @ text @$NetBSD: patch-src_osx_carbon_dcscreen.cpp,v 1.1 2024/12/26 18:10:23 adam Exp $ Fix wxOSX wxScreenDC compilation against SDK 15.0 https://github.com/vadz/wxWidgets/commit/87617efbe1e840590db6040f0866d0ac9fdc6bcf --- src/osx/carbon/dcscreen.cpp.orig 2024-12-26 18:03:39.853800381 +0000 +++ src/osx/carbon/dcscreen.cpp @@@@ -14,6 +14,7 @@@@ #include "wx/osx/dcscreen.h" #include "wx/osx/private.h" +#include "wx/osx/private/available.h" #include "wx/graphics.h" wxIMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxWindowDCImpl); @@@@ -69,14 +70,25 @@@@ wxBitmap wxScreenDCImpl::DoGetAsBitmap(c srcRect = CGRectOffset( srcRect, -subrect->x, -subrect->y ) ; CGImageRef image = NULL; - - image = CGDisplayCreateImage(kCGDirectMainDisplay); - wxASSERT_MSG(image, wxT("wxScreenDC::GetAsBitmap - unable to get screenshot.")); - - CGContextDrawImage(context, srcRect, image); +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 140000 + if ( WX_IS_MACOS_AVAILABLE(14, 4) ) // errors on lower versions of macOS 14 + { + // TODO add ScreenKit implementation + } + else +#endif // macOS 10.14+ + { +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 150000 + image = CGDisplayCreateImage(kCGDirectMainDisplay); +#endif + } - CGImageRelease(image); + if ( image != NULL ) + { + CGContextDrawImage(context, srcRect, image); + CGImageRelease(image); + } CGContextRestoreGState(context); #else @ 1.1 log @wxGTK32: fix build on macOS 15; fix PLIST for macOS/Darwin @ text @d1 1 a1 1 $NetBSD$ @