Non square pixel display in the sequencer (uses render aspect setting), needed for...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 29 Nov 2007 11:00:38 +0000 (11:00 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 29 Nov 2007 11:00:38 +0000 (11:00 +0000)
source/blender/src/drawseq.c

index bb04440bd0fefc3afdb55b5707b760a83d7b64b7..9dbac590d306ecb788061889faba0dfb673ed85b 100644 (file)
@@ -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);