Fix for off-by-one regression in D41

making the window larger was using incorrect factor leaving a black bar
on the window edge.
This commit is contained in:
Campbell Barton 2013-12-10 22:19:17 +11:00
parent 737e51cb21
commit e140024f2e

@ -686,10 +686,8 @@ static void screen_test_scale(bScreen *sc, int winsizex, int winsizey)
sizey = max[1] - min[1] + 1;
if (sizex != winsizex || sizey != winsizey) {
facx = winsizex;
facx /= (float)sizex;
facy = winsizey;
facy /= (float)sizey;
facx = ((float)winsizex) / ((float)sizex - 1);
facy = ((float)winsizey) / ((float)sizey - 1);
/* make sure it fits! */
for (sv = sc->vertbase.first; sv; sv = sv->next) {