X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1dd989e1bf4c3667d27b3c27a9cf64a66484ee90..97d7bfb8b470d62d8b2f142d5287b8217d9f3e8b:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index 2c66232f81..2388b401f8 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -244,7 +244,12 @@ public: void GetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) const { DoGetClippingBox(x, y, w, h); } void GetClippingBox(wxRect& rect) const - { DoGetClippingBox(&rect.x, &rect.y, &rect.width, &rect.height); } + { + // Necessary to use intermediate variables for 16-bit compilation + wxCoord x, y, w, h; + DoGetClippingBox(&x, &y, &w, &h); + rect.x = x; rect.y = y; rect.width = w; rect.height = h; + } // text extent // -----------