diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-12 12:01:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-12 12:02:51 +0400 |
commit | 7658f7acfffdeffea45c5c12908fd652fc277619 (patch) | |
tree | 73fcd94bd172e105ecad4ea7fc7209fb0d5d6388 | |
parent | 460a96dc5a09110bb3617c0f3528473573504b69 (diff) |
Fix for off by one error noted by Anthony Edlin
-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 61d28a45fac..e00f98c59e8 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -725,8 +725,8 @@ static void screen_test_scale(bScreen *sc, int winsize_x, int winsize_y) if (winsize_x_prev != winsize_x || winsize_y_prev != winsize_y) { - facx = ((float)winsize_x) / ((float)winsize_x_prev - 1); - facy = ((float)winsize_y) / ((float)winsize_y_prev - 1); + facx = ((float)winsize_x - 1) / ((float)winsize_x_prev - 1); + facy = ((float)winsize_y - 1) / ((float)winsize_y_prev - 1); /* make sure it fits! */ for (sv = sc->vertbase.first; sv; sv = sv->next) { |