Fix T43959 jittering in 2D texture painting.

This is still not perfect,
but should work smoother now. Previously there was visible wobbling
while painting.

This can be included in final release.
This commit is contained in:
Antony Riakiotakis
2015-03-13 13:09:52 +01:00
parent a0a6cb129e
commit 79393cb7a2
@@ -345,8 +345,8 @@ static unsigned short *brush_painter_curve_mask_new(BrushPainter *painter, int d
{
Brush *brush = painter->brush;
int xoff = -diameter * 0.5f + 0.5f;
int yoff = -diameter * 0.5f + 0.5f;
int xoff = -radius;
int yoff = -radius;
unsigned short *mask, *m;
int x, y;