-// Canvas is zoomed to a portion of the output frame
- if(use_scrollbars)
- {
- float in_x1, in_y1, in_x2, in_y2;
- float out_x1, out_y1, out_x2, out_y2;
- float zoom_x, zoom_y, conformed_w, conformed_h;
-
- get_zooms(edl, 0, zoom_x, zoom_y, conformed_w, conformed_h);
- out_x1 = 0;
- out_y1 = 0;
- out_x2 = canvas_w;
- out_y2 = canvas_h;
- in_x1 = 0;
- in_y1 = 0;
- in_x2 = canvas_w;
- in_y2 = canvas_h;
-
- canvas_to_output(edl, 0, in_x1, in_y1);
- canvas_to_output(edl, 0, in_x2, in_y2);
-
-//printf("Canvas::get_transfers 1 %.0f %.0f %.0f %.0f -> %.0f %.0f %.0f %.0f\n",
-//in_x1, in_y1, in_x2, in_y2, out_x1, out_y1, out_x2, out_y2);
-
- if(in_x1 < 0)
- {
- out_x1 += -in_x1 * zoom_x;
- in_x1 = 0;
- }
-
- if(in_y1 < 0)
- {
- out_y1 += -in_y1 * zoom_y;
- in_y1 = 0;
- }
+ float in_x1, in_y1, in_x2, in_y2;
+ float out_x1, out_y1, out_x2, out_y2;
+ float zoom_x, zoom_y, conformed_w, conformed_h;