diff --git a/src/gtk/dc.cpp b/src/gtk/dc.cpp index 35815f5cce..35db75c0e7 100644 --- a/src/gtk/dc.cpp +++ b/src/gtk/dc.cpp @@ -355,7 +355,9 @@ void wxPaintDCImpl::DestroyClippingRegion() int x, y, w, h; m_clip.GetBox(x, y, w, h); cairo_t* cr = static_cast(GetCairoContext()); - cairo_rectangle(cr, x, y, w, h); + cairo_rectangle(cr, + DeviceToLogicalX(x), DeviceToLogicalY(y), + DeviceToLogicalXRel(w), DeviceToLogicalYRel(h)); cairo_clip(cr); } //-----------------------------------------------------------------------------