- bug fix #1086
authorTon Roosendaal <ton@blender.org>
Sat, 3 Apr 2004 17:11:14 +0000 (17:11 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 3 Apr 2004 17:11:14 +0000 (17:11 +0000)
  using backbuffer, and having an odd number of lines in image, skipped the
  last one to fill in backbuffer...
  An oldie!

source/blender/render/intern/source/rendercore.c

index a086064db508ae8c80bceee46373954f8686d1cd..75ef82658f40865394d3b77fa111f54a00c43012 100644 (file)
@@ -283,7 +283,7 @@ void scanlinesky(char *rect, int y)
                                }
                        }
                        /* which scanline/ */
                                }
                        }
                        /* which scanline/ */
-                       y= ((y+R.afmy+R.ystart)*R.backbuf->ibuf->y)/(2*R.afmy);
+                       y= ((y+R.afmy+R.ystart)*R.backbuf->ibuf->y)/(R.recty);
                        
                        if(R.flag & R_SEC_FIELD) {
                                if((R.r.mode & R_ODDFIELD)==0) {
                        
                        if(R.flag & R_SEC_FIELD) {
                                if((R.r.mode & R_ODDFIELD)==0) {