Fix user preferences window contents being shifted to the left.

This commit is contained in:
2010-02-16 17:07:06 +00:00
parent aefe9be5db
commit 24a0eececf

View File

@@ -289,8 +289,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
v2d->cur.xmax= (winx - V2D_SCROLL_WIDTH)*panelzoom;
v2d->cur.ymax= 0.0f;
/* bad workaround for keeping zoom level with scrollers */
v2d->cur.ymin= (-winy + V2D_SCROLL_HEIGHT)*panelzoom;
v2d->cur.ymin= (-winy)*panelzoom;
}
break;