Fixed annoyance with opion "DispView" and Border render. It now displays

the rendered pixels in the indicated border nicely.
This commit is contained in:
Ton Roosendaal 2005-02-12 16:05:40 +00:00
parent b7d5f62e04
commit 9cbf39e478

@ -773,6 +773,23 @@ static void renderview_progress_display_cb(int y1, int y2, int w, int h, unsigne
calc_viewborder(v3d, &vb);
/* if border render */
if(G.scene->r.mode & R_BORDER) {
/* but, if image is full (at end of border render, without crop) we don't */
if(R.rectx != (G.scene->r.size*G.scene->r.xsch)/100 ||
R.recty != (G.scene->r.size*G.scene->r.ysch)/100 ) {
facx= (float) (vb.xmax-vb.xmin);
facy= (float) (vb.ymax-vb.ymin);
vb.xmax= vb.xmin + facx*G.scene->r.border.xmax;
vb.ymax= vb.ymin + facy*G.scene->r.border.ymax;
vb.xmin+= facx*G.scene->r.border.xmin;
vb.ymin+= facy*G.scene->r.border.ymin;
}
}
facx= (float) (vb.xmax-vb.xmin)/R.rectx;
facy= (float) (vb.ymax-vb.ymin)/R.recty;