View Single Post
Old 12-18-2018, 08:23 PM   #8
Human being with feelings
Join Date: Oct 2009
Posts: 115

Originally Posted by Eliseat View Post
It really looks like its jumping backwards in this gif but I'm having problems to reproduce that.
Code-wise there's something which rounds the zoomed image dimensions to numbers that are divisible by 2 (5 becomes 4, 123 becomes 122 etc.). Not completely sure what this does (let the image stay centered?) but do you see any improvements concerning the backwards jumping if you remove the "&0xfffe" part from these lines (line 33 and 34)?
    dw = (project_w*z)&0xfffe;
    dh = (project_h*z)&0xfffe;
EDIT: ah I can reproduce it by zooming into the image and simultaneously moving it down so that the upper border of the image has 2 opposing directions. My quick fix seems to prevent jumping back but for now I'm not sure if this breaks something else.

(btw enabling filtering makes edges in the image look much more smooth)

Last edited by wwwmaze; 12-18-2018 at 09:20 PM.
wwwmaze is offline   Reply With Quote