diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-04 19:17:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-04 19:17:37 +0300 |
commit | b2d3843992850560f03051d49528c287065cb8f1 (patch) | |
tree | afa0447534fba713664c07f2427177063ceb5dba /source/blender/editors/screen | |
parent | f478cef43b845f007cb6340df761cb43ff62c762 (diff) |
for some reason even though this resizes areas more evenly on my system (and works ok on Brecht's) theres a report that resizing views fail.
[#24529] Views Resizing Problems
now this is exactly like what it was before, hope its fixed.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index a275de08356..e3da9af4e2d 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -647,14 +647,14 @@ static void screen_test_scale(bScreen *sc, int winsizex, int winsizey) * need some way to store these as floats internally and re-apply from there. */ tempf= ((float)sv->vec.x)*facx; sv->vec.x= (short)(tempf+0.5); - sv->vec.x+= AREAGRID-2; + sv->vec.x+= AREAGRID-1; sv->vec.x-= (sv->vec.x % AREAGRID); CLAMP(sv->vec.x, 0, winsizex); tempf= ((float)sv->vec.y)*facy; sv->vec.y= (short)(tempf+0.5); - sv->vec.y+= AREAGRID-2; + sv->vec.y+= AREAGRID-1; sv->vec.y-= (sv->vec.y % AREAGRID); CLAMP(sv->vec.y, 0, winsizey); |