+#if 0
+ // TODO in case we adopt point vs pixel coordinates, this will make the conversion
+ GetWindowPortBounds( MAC_WXHWND(MacGetTopLevelWindowRef()) , &bounds ) ;
+ HIRect hiRect = CGRectMake( x, y, width, height ) ;
+ HIRectConvert( &hiRect, kHICoordSpace72DPIGlobal, NULL, kHICoordSpaceScreenPixel, NULL) ;
+ HIRect hiBounds = CGRectMake( 0, 0, bounds.right - bounds.left , bounds.bottom - bounds.top ) ;
+ HIRectConvert( &hiBounds, kHICoordSpace72DPIGlobal, NULL, kHICoordSpaceScreenPixel, NULL) ;
+ GLint parms[4] ;
+ parms[0] = hiRect.origin.x ;
+ parms[1] = hiBounds.size.height - (hiRect.origin.y + hiRect.size.height) ;
+ parms[2] = hiRect.size.width ;
+ parms[3] = hiRect.size.height ;
+#else