Re: [2/2] gdiplus: Add preliminary support for pixel offset modes.
4 Sep
2012
4 Sep
'12
2:24 p.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.
4848
Age (days ago)
4848
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vincent Povirk