X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfcab929d4137d7eaf68cfad43601fe8baf461bd..9c34a216817028bc533e07873d047208a96b05a2:/include/wx/bitmap.h?ds=sidebyside diff --git a/include/wx/bitmap.h b/include/wx/bitmap.h index 353d2ec04d..06824a2c27 100644 --- a/include/wx/bitmap.h +++ b/include/wx/bitmap.h @@ -175,7 +175,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;