forked from bartvdbraak/blender
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:
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;
|
sizey = max[1] - min[1] + 1;
|
||||||
|
|
||||||
if (sizex != winsizex || sizey != winsizey) {
|
if (sizex != winsizex || sizey != winsizey) {
|
||||||
facx = winsizex;
|
facx = ((float)winsizex) / ((float)sizex - 1);
|
||||||
facx /= (float)sizex;
|
facy = ((float)winsizey) / ((float)sizey - 1);
|
||||||
facy = winsizey;
|
|
||||||
facy /= (float)sizey;
|
|
||||||
|
|
||||||
/* make sure it fits! */
|
/* make sure it fits! */
|
||||||
for (sv = sc->vertbase.first; sv; sv = sv->next) {
|
for (sv = sc->vertbase.first; sv; sv = sv->next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user