fixes for filelist read_frame
[goodguy/history.git] / cinelerra-5.1 / cinelerra / affine.C
index f6bedb2e17b557631889ca79b20e49789d37c569..09f81f2ed6b9542d4377f0e2a825423bb1ba160d 100644 (file)
@@ -372,6 +372,11 @@ void AffineUnit::process_package(LoadPackage *package)
                server->use_opengl)
        {
 #ifdef HAVE_GL
+               out_x1 -= pivot_offset_x;  out_y1 -= pivot_offset_y;
+               out_x2 -= pivot_offset_x;  out_y2 -= pivot_offset_y;
+               out_x3 -= pivot_offset_x;  out_y3 -= pivot_offset_y;
+               out_x4 -= pivot_offset_x;  out_y4 -= pivot_offset_y;
+
                server->output->to_texture();
                server->output->enable_opengl();
                server->output->init_screen();
@@ -875,7 +880,7 @@ void AffineUnit::process_package(LoadPackage *package)
 
        for(int y = ty1; y < ty2; y++)
        {
-//printf("AffineUnit::process_package %d y=%d tx1=%d tx2=%d ty1=%d ty2=%d\n", 
+//printf("AffineUnit::process_package %d y=%d tx1=%d tx2=%d ty1=%d ty2=%d\n",
 //__LINE__, y, tx1, tx2, ty1, ty2);
                unsigned char *out_row = (unsigned char*)server->output->get_rows()[y];