X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfcab929d4137d7eaf68cfad43601fe8baf461bd..e733c4ce1e24cf7e4b0b0d8362fc59aaa7a7641c:/include/wx/bitmap.h?ds=sidebyside diff --git a/include/wx/bitmap.h b/include/wx/bitmap.h index 353d2ec04d..6d9ffe71b7 100644 --- a/include/wx/bitmap.h +++ b/include/wx/bitmap.h @@ -4,7 +4,6 @@ // Author: Vaclav Slavik // Modified by: // Created: 22.04.01 -// RCS-ID: $Id$ // Copyright: (c) wxWidgets team // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -175,7 +174,8 @@ public: virtual bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH) = 0; virtual bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) = 0; - // Create a bitmap compatible with the given DC, inheriting its magnification factor + virtual bool CreateScaled(int w, int h, int d, double logicalScale) + { return Create(w*logicalScale,h*logicalScale,d); } virtual int GetHeight() const = 0; virtual int GetWidth() const = 0;