- /* Convert from GL to hardware coordinates. Transform original points
- * along with it so that we can look at cliprects in hw coordinates and
- * map back to points in the source space.
- */
- if (fb->Name == 0) {
- /* bitmap to a system framebuffer */
- dstx = x_off + dstx;
- dsty = y_off + (fb->Height - dsty - height);
- orig_dstx = x_off + orig_dstx;
- orig_dsty = y_off + (fb->Height - orig_dsty - height);
- } else {
- /* bitmap to a user framebuffer object */
- dstx = x_off + dstx;
- dsty = y_off + dsty;
- orig_dstx = x_off + orig_dstx;
- orig_dsty = y_off + orig_dsty;
- }
-
- dest_rect.x1 = dstx;
- dest_rect.y1 = dsty;
- dest_rect.x2 = dstx + width;
- dest_rect.y2 = dsty + height;