Well, actually that's no shear, just a non-uniform scaling. Here's what happens with these lines of code!
Code ("temp" is the angle, lena is charged with the standard lena png image):
t_jsurface *lena = jgraphics_image_surface_create_from_file(filename, path);
double height = jgraphics_image_surface_get_height(lena);
double width = jgraphics_image_surface_get_width(lena);
jgraphics_rotate(g, x->temp);
jgraphics_image_surface_draw(g, lena, build_rect(0, 0, width, height), build_rect(0, 0, rect.width, rect.height));
Does anybody know which is the most efficient way to bypass this issue?