[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32870] trunk/blender/source/blender/ editors/screen/screen_edit.c: 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.
Campbell Barton
ideasman42 at gmail.com
Thu Nov 4 17:17:37 CET 2010
Revision: 32870
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32870
Author: campbellbarton
Date: 2010-11-04 17:17:37 +0100 (Thu, 04 Nov 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/screen/screen_edit.c
Modified: trunk/blender/source/blender/editors/screen/screen_edit.c
===================================================================
--- trunk/blender/source/blender/editors/screen/screen_edit.c 2010-11-04 16:00:28 UTC (rev 32869)
+++ trunk/blender/source/blender/editors/screen/screen_edit.c 2010-11-04 16:17:37 UTC (rev 32870)
@@ -647,14 +647,14 @@
* 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);
More information about the Bf-blender-cvs
mailing list