X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1dd989e1bf4c3667d27b3c27a9cf64a66484ee90..ce89fdd22ecbaf29569e70733d76c8f1eaca391e:/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 // -----------