mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-13 09:39:11 +01:00
822326eea9
From wxWidgets master 81570ae070b35c9d52de47b1f14897f3ff1a66c7. include/wx/defs.h -- __w64 warning disable patch by comex brought forward. include/wx/msw/window.h -- added GetContentScaleFactor() which was not implemented on Windows but is necessary for wxBitmap scaling on Mac OS X so it needs to work to avoid #ifdef-ing the code. src/gtk/window.cpp -- Modified DoSetClientSize() to direct call wxWindowGTK::DoSetSize() instead of using public wxWindowBase::SetSize() which now prevents derived classes (like wxAuiToolbar) intercepting the call and breaking it. This matches Windows which does NOT need to call DoSetSize internally. End result is this fixes Dolphin's debug tools toolbars on Linux. src/osx/window_osx.cpp -- Same fix as for GTK since it has the same issue. src/msw/radiobox.cpp -- Hacked to fix display in HiDPI (was clipping off end of text). Updated CMakeLists for Linux and Mac OS X. Small code changes to Dolphin to fix debug error boxes, deprecation warnings, and retain previous UI behavior on Windows.
82 lines
1.8 KiB
C
82 lines
1.8 KiB
C
/*
|
|
* Name: wx/osx/chkconf.h
|
|
* Purpose: Mac-specific config settings checks
|
|
* Author: Vadim Zeitlin
|
|
* Modified by:
|
|
* Created: 2005-04-05 (extracted from wx/chkconf.h)
|
|
* Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
* Licence: wxWindows licence
|
|
*/
|
|
|
|
/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
|
|
|
|
#ifndef _WX_OSX_CHKCONF_H_
|
|
#define _WX_OSX_CHKCONF_H_
|
|
|
|
/*
|
|
* check graphics context option, must be on for every os x platform
|
|
* we only use core graphics now on all builds, try to catch attempts
|
|
* to configure the build otherwise and give error messages
|
|
*/
|
|
|
|
#if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \
|
|
( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ))
|
|
# error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely"
|
|
#endif
|
|
|
|
/*
|
|
* using mixins of cocoa functionality
|
|
*/
|
|
|
|
#ifdef __WXOSX_COCOA__
|
|
#define wxOSX_USE_COCOA 1
|
|
#else
|
|
#define wxOSX_USE_COCOA 0
|
|
#endif
|
|
|
|
#ifdef __WXOSX_CARBON__
|
|
#define wxOSX_USE_CARBON 1
|
|
#else
|
|
#define wxOSX_USE_CARBON 0
|
|
#endif
|
|
|
|
#ifdef __WXOSX_IPHONE__
|
|
#define wxOSX_USE_IPHONE 1
|
|
#else
|
|
#define wxOSX_USE_IPHONE 0
|
|
#endif
|
|
|
|
/*
|
|
* setting flags according to the platform
|
|
*/
|
|
|
|
#ifdef __LP64__
|
|
#if wxOSX_USE_CARBON
|
|
#error "Carbon does not support 64bit"
|
|
#endif
|
|
#endif
|
|
|
|
/*
|
|
* combination flags
|
|
*/
|
|
|
|
#if wxOSX_USE_COCOA || wxOSX_USE_CARBON
|
|
#define wxOSX_USE_COCOA_OR_CARBON 1
|
|
#else
|
|
#define wxOSX_USE_COCOA_OR_CARBON 0
|
|
#endif
|
|
|
|
#if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
|
|
#define wxOSX_USE_COCOA_OR_IPHONE 1
|
|
#else
|
|
#define wxOSX_USE_COCOA_OR_IPHONE 0
|
|
#endif
|
|
|
|
#if wxOSX_USE_IPHONE
|
|
#include "wx/osx/iphone/chkconf.h"
|
|
#elif wxOSX_USE_COCOA
|
|
#include "wx/osx/cocoa/chkconf.h"
|
|
#endif
|
|
|
|
#endif /* _WX_OSX_CHKCONF_H_ */
|