X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..14b682f7c36ecf660c2f0bd5c791b8d36d9775f8:/include/wx/msw/dcmemory.h diff --git a/include/wx/msw/dcmemory.h b/include/wx/msw/dcmemory.h index 49c5475de2..01c0b5229d 100644 --- a/include/wx/msw/dcmemory.h +++ b/include/wx/msw/dcmemory.h @@ -27,7 +27,7 @@ public: virtual void DoGetSize(int* width, int* height) const; virtual void DoSelect(const wxBitmap& bitmap); - virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const + virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmapOfHDC(*subrect, GetHDC() );} protected: