diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-15 15:16:01 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-15 15:16:01 +0400 |
commit | 98beda156c5e5c05c340abc929c585b8556e99fc (patch) | |
tree | fc210fe656d77a94d79868b5f72eeaa23e7112c7 /source/blender/editors/interface/view2d.c | |
parent | e1cb4aade83dbee536e75fb15d64905c918d045d (diff) |
Fix part of #35372: distorted strokes when painting zoomed out with a small brush
size. Interpolated mouse coordinates should not get rounded to integers.
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 74047abb17e..766a91df5db 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -1961,7 +1961,7 @@ void UI_view2d_listview_visible_cells(View2D *v2d, short columnwidth, short rowh * - x,y = coordinates to convert * - viewx,viewy = resultant coordinates */ -void UI_view2d_region_to_view(View2D *v2d, int x, int y, float *r_viewx, float *r_viewy) +void UI_view2d_region_to_view(View2D *v2d, float x, float y, float *r_viewx, float *r_viewy) { float div, ofs; |