Fix T64579: Failure to honor anamorphic display

Restore stretching of sequencer preview removed in rB005626b8c6b4

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4879
This commit is contained in:
Richard Antalik 2019-05-19 11:18:23 -07:00
parent 758c25d89d
commit eee704a83f
Notes: blender-bot 2023-03-24 17:05:22 +01:00
Referenced by issue #64579, Failure to honor anamorphic display
2 changed files with 3 additions and 2 deletions

View File

@ -1121,8 +1121,7 @@ static void sequencer_display_size(Scene *scene, float r_viewrect[2])
r_viewrect[0] = (float)scene->r.xsch;
r_viewrect[1] = (float)scene->r.ysch;
/* Aspect ratio seems to have no effect on output image*/
/* r_viewrect[0] *= scene->r.xasp / scene->r.yasp; */
r_viewrect[0] *= scene->r.xasp / scene->r.yasp;
}
static void sequencer_draw_gpencil(const bContext *C)

View File

@ -108,6 +108,8 @@ static void sample_apply(bContext *C, wmOperator *op, const wmEvent *event)
UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &fx, &fy);
fx /= scene->r.xasp / scene->r.yasp;
fx += (float)scene->r.xsch / 2.0f;
fy += (float)scene->r.ysch / 2.0f;
fx *= (float)ibuf->x / (float)scene->r.xsch;