From: Stefan Csomor Date: Tue, 25 Jun 2013 16:25:32 +0000 (+0000) Subject: adding default impl for CreateScaled X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a066916baad5def2e71c3d6e450359494b599893 adding default impl for CreateScaled git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/bitmap.h b/include/wx/bitmap.h index 353d2ec04d..d3cb3c31bd 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;