Bugfix: softshadow in menus was broken.

Already since like 2.61 - when Array draw was added - drawing only shadow 
in bottom of menus with bad looking corners.
This commit is contained in:
Ton Roosendaal
2012-12-09 11:57:06 +00:00
parent a1ec96cf4e
commit 55e55e21b0

View File

@@ -651,8 +651,8 @@ static void widget_verts_to_quad_strip_open(uiWidgetBase *wtb, const int totvert
for (a = 0; a < totvert; a++) {
quad_strip[a * 2][0] = wtb->outer_v[a][0];
quad_strip[a * 2][1] = wtb->outer_v[a][1];
quad_strip[a * 2 + 1][0] = wtb->outer_v[a][0];
quad_strip[a * 2 + 1][1] = wtb->outer_v[a][1] - 1.0f;
quad_strip[a * 2 + 1][0] = wtb->inner_v[a][0];
quad_strip[a * 2 + 1][1] = wtb->inner_v[a][1];
}
}