diff --git a/docs/doxygen/mainpages/const_cpp.h b/docs/doxygen/mainpages/const_cpp.h index d489df55b4..75a5b56c8d 100644 --- a/docs/doxygen/mainpages/const_cpp.h +++ b/docs/doxygen/mainpages/const_cpp.h @@ -167,9 +167,6 @@ Currently the following symbols exist: have an efficient (CPU-specific) implementation. Notice that the functions themselves are always available but can be prohibitively slow to use when implemented in a generic way, using a critical section.} -@itemdef{wxHAS_BITMAP_SCALE_FACTOR, Defined in @c wx/bitmap.h if bitmaps - actually use scale factor under the current platform, see - wxBitmap::SetScaleFactor().} @itemdef{wxHAS_BITMAPTOGGLEBUTTON, Defined in @c wx/tglbtn.h if wxBitmapToggleButton class is available in addition to wxToggleButton.} @itemdef{wxHAS_CONFIG_TEMPLATE_RW, Defined if the currently used compiler diff --git a/include/wx/gtk/bitmap.h b/include/wx/gtk/bitmap.h index f79c081393..975dff950f 100644 --- a/include/wx/gtk/bitmap.h +++ b/include/wx/gtk/bitmap.h @@ -17,10 +17,6 @@ typedef struct _GdkPixbuf GdkPixbuf; class WXDLLIMPEXP_FWD_CORE wxPixelDataBase; class WXDLLIMPEXP_FWD_CORE wxCursor; -#ifdef __WXGTK3__ - #define wxHAS_BITMAP_SCALE_FACTOR -#endif - //----------------------------------------------------------------------------- // wxMask //----------------------------------------------------------------------------- @@ -89,7 +85,7 @@ public: { return Create(sz.GetWidth(), sz.GetHeight(), depth); } bool Create(int width, int height, const wxDC& WXUNUSED(dc)) { return Create(width,height); } -#ifdef wxHAS_BITMAP_SCALE_FACTOR +#ifdef __WXGTK3__ virtual bool CreateScaled(int w, int h, int depth, double scale) wxOVERRIDE; virtual void SetScaleFactor(double scale) wxOVERRIDE; virtual double GetScaleFactor() const wxOVERRIDE; diff --git a/include/wx/osx/bitmap.h b/include/wx/osx/bitmap.h index 47c7e5fdc1..c8173abc59 100644 --- a/include/wx/osx/bitmap.h +++ b/include/wx/osx/bitmap.h @@ -13,8 +13,6 @@ #include "wx/palette.h" -#define wxHAS_BITMAP_SCALE_FACTOR - // Bitmap class WXDLLIMPEXP_FWD_CORE wxBitmap; class wxBitmapRefData ; diff --git a/interface/wx/bitmap.h b/interface/wx/bitmap.h index 8299dd6f5c..3ef0c30b94 100644 --- a/interface/wx/bitmap.h +++ b/interface/wx/bitmap.h @@ -816,21 +816,6 @@ public: When creating a new bitmap, CreateScaled() can be used to specify the correct scale factor from the beginning. - Note that this method exists in all ports, but simply does nothing in - those of them that don't use logical pixel scaling. The preprocessor - symbol @c wxHAS_BITMAP_SCALE_FACTOR can be tested to determine whether - the scale factor is really supported, e.g. - - @code - bitmap.SetScaleFactor(2); - - // In the other ports scale factor is always 1, so the assert would - // fail there. - #ifdef wxHAS_BITMAP_SCALE_FACTOR - wxASSERT( bitmap.GetScaleFactor() == 2 ); - #endif - @endcode - @since 3.1.6 */ virtual void SetScaleFactor(double scale); diff --git a/tests/graphics/bmpbundle.cpp b/tests/graphics/bmpbundle.cpp index cebbc0c110..b0f7cac236 100644 --- a/tests/graphics/bmpbundle.cpp +++ b/tests/graphics/bmpbundle.cpp @@ -73,7 +73,7 @@ TEST_CASE("BitmapBundle::GetPreferredSize", "[bmpbundle]") CHECK( b.GetPreferredSizeAtScale(3 ) == 3*normal ); } -#ifdef wxHAS_BITMAP_SCALE_FACTOR +#ifdef wxHAS_DPI_INDEPENDENT_PIXELS TEST_CASE("BitmapBundle::Scaled", "[bmpbundle]") { @@ -105,7 +105,7 @@ TEST_CASE("BitmapBundle::Scaled", "[bmpbundle]") CHECK( b.GetDefaultSize() == wxSize(32, 32) ); } -#endif // wxHAS_BITMAP_SCALE_FACTOR +#endif // wxHAS_DPI_INDEPENDENT_PIXELS #ifdef wxHAS_SVG