+ wxRect rect = region.AsRect();
+
+ // our parameter is in physical coordinates while DoSetClippingRegion()
+ // takes logical ones
+ rect.x = XDEV2LOG(rect.x);
+ rect.y = YDEV2LOG(rect.y);
+ rect.width = XDEV2LOG(rect.width);
+ rect.height = YDEV2LOG(rect.height);
+
+ DoSetClippingRegion(rect.x, rect.y, rect.width, rect.height);