mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 17:49:48 -06:00
Update wxWidgets to 3.1.0
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.
This commit is contained in:
30
Externals/wxWidgets3/include/wx/bitmap.h
vendored
30
Externals/wxWidgets3/include/wx/bitmap.h
vendored
@ -71,9 +71,9 @@ protected:
|
||||
#if defined(__WXDFB__) || \
|
||||
defined(__WXMAC__) || \
|
||||
defined(__WXGTK__) || \
|
||||
defined(__WXCOCOA__) || \
|
||||
defined(__WXMOTIF__) || \
|
||||
defined(__WXX11__)
|
||||
defined(__WXX11__) || \
|
||||
defined(__WXQT__)
|
||||
#define wxUSE_BITMAP_BASE 1
|
||||
#else
|
||||
#define wxUSE_BITMAP_BASE 0
|
||||
@ -100,8 +100,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
// All ports except wxMSW and wxOS2 use wxBitmapHandler and wxBitmapBase as
|
||||
// base class for wxBitmapHandler; wxMSW and wxOS2 use wxGDIImageHandler as
|
||||
// All ports except wxMSW use wxBitmapHandler and wxBitmapBase as
|
||||
// base class for wxBitmapHandler; wxMSW uses wxGDIImageHandler as
|
||||
// base class since it allows some code reuse there.
|
||||
#if wxUSE_BITMAP_BASE
|
||||
|
||||
@ -146,7 +146,7 @@ private:
|
||||
wxString m_extension;
|
||||
wxBitmapType m_type;
|
||||
|
||||
DECLARE_ABSTRACT_CLASS(wxBitmapHandler)
|
||||
wxDECLARE_ABSTRACT_CLASS(wxBitmapHandler);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -254,7 +254,7 @@ public:
|
||||
protected:
|
||||
static wxList sm_handlers;
|
||||
|
||||
DECLARE_ABSTRACT_CLASS(wxBitmapBase)
|
||||
wxDECLARE_ABSTRACT_CLASS(wxBitmapBase);
|
||||
};
|
||||
|
||||
#endif // wxUSE_BITMAP_BASE
|
||||
@ -287,12 +287,9 @@ protected:
|
||||
#elif defined(__WXMAC__)
|
||||
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_PICT_RESOURCE
|
||||
#include "wx/osx/bitmap.h"
|
||||
#elif defined(__WXCOCOA__)
|
||||
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
|
||||
#include "wx/cocoa/bitmap.h"
|
||||
#elif defined(__WXPM__)
|
||||
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
|
||||
#include "wx/os2/bitmap.h"
|
||||
#elif defined(__WXQT__)
|
||||
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
||||
#include "wx/qt/bitmap.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_IMAGE
|
||||
@ -305,13 +302,8 @@ wxBitmap::
|
||||
#endif
|
||||
ConvertToDisabled(unsigned char brightness) const
|
||||
{
|
||||
// XXX comex: scale support
|
||||
wxImage disabledImage = ConvertToImage().ConvertToDisabled(brightness);
|
||||
#ifdef __APPLE__
|
||||
return wxBitmap(disabledImage, -1, GetScaleFactor());
|
||||
#else
|
||||
return disabledImage;
|
||||
#endif
|
||||
const wxImage imgDisabled = ConvertToImage().ConvertToDisabled(brightness);
|
||||
return wxBitmap(imgDisabled, -1, GetScaleFactor());
|
||||
}
|
||||
#endif // wxUSE_IMAGE
|
||||
|
||||
|
Reference in New Issue
Block a user