View Single Post
Old 10-31-2018, 07:36 AM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,623
Default

Try this:
Code:
input_info(0,w,h);
gfx_blit(0,0, 0,0,project_w,project_h,w,0,-w,h);
For more power you can also use gfx_deltablit() to do transformations, e.g.
Code:
input_info(0,w,h);
gfx_deltablit(0, 0,0, project_w,project_h,
             w,0, // starting source coordinates
            -w/project_w,0, // source delta-X/delta-Y with respect to output X
            0,h/project_h   // source delta-X/delta-Y with respect to output Y
            );

Last edited by Justin; 10-31-2018 at 07:43 AM.
Justin is offline   Reply With Quote