mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 09:09:12 +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.
70 lines
1.9 KiB
C++
70 lines
1.9 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/meta/pod.h
|
|
// Purpose: Test if a type is POD
|
|
// Author: Vaclav Slavik, Jaakko Salli
|
|
// Created: 2010-06-14
|
|
// Copyright: (c) wxWidgets team
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_META_POD_H_
|
|
#define _WX_META_POD_H_
|
|
|
|
#include "wx/defs.h"
|
|
|
|
//
|
|
// TODO: Use TR1 is_pod<> implementation where available. VC9 SP1 has it
|
|
// in tr1 namespace, VC10 has it in std namespace. GCC 4.2 has it in
|
|
// <tr1/type_traits>, while GCC 4.3 and later have it in <type_traits>.
|
|
//
|
|
|
|
// Helper to decide if an object of type T is POD (Plain Old Data)
|
|
template<typename T>
|
|
struct wxIsPod
|
|
{
|
|
static const bool value = false;
|
|
};
|
|
|
|
// Macro to add wxIsPod<T> specialization for given type that marks it
|
|
// as Plain Old Data:
|
|
#define WX_DECLARE_TYPE_POD(type) \
|
|
template<> struct wxIsPod<type> \
|
|
{ \
|
|
static const bool value = true; \
|
|
};
|
|
|
|
WX_DECLARE_TYPE_POD(bool)
|
|
WX_DECLARE_TYPE_POD(unsigned char)
|
|
WX_DECLARE_TYPE_POD(signed char)
|
|
WX_DECLARE_TYPE_POD(unsigned int)
|
|
WX_DECLARE_TYPE_POD(signed int)
|
|
WX_DECLARE_TYPE_POD(unsigned short int)
|
|
WX_DECLARE_TYPE_POD(signed short int)
|
|
WX_DECLARE_TYPE_POD(signed long int)
|
|
WX_DECLARE_TYPE_POD(unsigned long int)
|
|
WX_DECLARE_TYPE_POD(float)
|
|
WX_DECLARE_TYPE_POD(double)
|
|
WX_DECLARE_TYPE_POD(long double)
|
|
#if wxWCHAR_T_IS_REAL_TYPE
|
|
WX_DECLARE_TYPE_POD(wchar_t)
|
|
#endif
|
|
#ifdef wxLongLong_t
|
|
WX_DECLARE_TYPE_POD(wxLongLong_t)
|
|
WX_DECLARE_TYPE_POD(wxULongLong_t)
|
|
#endif
|
|
|
|
// pointers are Plain Old Data:
|
|
template<typename T>
|
|
struct wxIsPod<T*>
|
|
{
|
|
static const bool value = true;
|
|
};
|
|
|
|
template<typename T>
|
|
struct wxIsPod<const T*>
|
|
{
|
|
static const bool value = true;
|
|
};
|
|
|
|
#endif // _WX_META_POD_H_
|