From 742ef6746c3bd1dfbc2ecd705d4af255e919d7ae Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 29 Nov 2007 11:00:38 +0000 Subject: [PATCH] Non square pixel display in the sequencer (uses render aspect setting), needed for displaying some DV footage correctly. --- source/blender/src/drawseq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c index bb04440bd0f..9dbac590d30 100644 --- a/source/blender/src/drawseq.c +++ b/source/blender/src/drawseq.c @@ -851,8 +851,9 @@ static void draw_image_seq(ScrArea *sa) /* needed for gla draw */ glaDefine2DArea(&curarea->winrct); - glPixelZoom(zoom, zoom); - + + glPixelZoom(zoom * ((float)G.scene->r.xasp / (float)G.scene->r.yasp), zoom); + glaDrawPixelsSafe(x1, y1, ibuf->x, ibuf->y, ibuf->x, GL_RGBA, GL_UNSIGNED_BYTE, ibuf->rect); glPixelZoom(1.0, 1.0);