Re: [2/2] gdiplus: Add preliminary support for pixel offset modes.
Sept. 4, 2012
9:24 a.m.
return sample_bitmap_pixel(src_rect, bits, width, height, - gdip_round(point->X), gdip_round(point->Y), attributes); + point->X + pixel_offset, point->Y + pixel_offset, attributes); + }
This is going to break tiling. By removing gdip_round you're implicitly truncating the number instead of flooring, which will give you the wrong result when X or Y is negative. I suggest explicitly adding a floorf.
4950
Age (days ago)
4950
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vincent Povirk