X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..835165d576b66441987b78519e6ef1fe74ea795a:/include/wx/os2/dcmemory.h?ds=inline diff --git a/include/wx/os2/dcmemory.h b/include/wx/os2/dcmemory.h index 10ca985c09..b4f268db1d 100644 --- a/include/wx/os2/dcmemory.h +++ b/include/wx/os2/dcmemory.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dcmemory.h +// Name: wx/os2/dcmemory.h // Purpose: wxMemoryDC class // Author: David Webster // Modified by: @@ -26,7 +26,7 @@ public: virtual void DoGetSize(int* pWidth, int* pHeight) 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().GetSubBitmap(*subrect);} protected: