Minor alignment for triangles on number slider widget

This commit is contained in:
Pablo Vazquez
2014-10-12 01:01:59 +02:00
parent 545308fd10
commit ee5936cf6b

View File

@@ -490,12 +490,12 @@ static void widget_draw_tria_ex(
minsize = min_ii(BLI_rcti_size_x(rect), BLI_rcti_size_y(rect));
/* center position and size */
centx = (float)rect->xmin + 0.5f * minsize;
centx = (float)rect->xmin + 0.4f * minsize;
centy = (float)rect->ymin + 0.5f * minsize;
sizex = sizey = -0.5f * triasize * minsize;
if (where == 'r') {
centx = (float)rect->xmax - 0.5f * minsize;
centx = (float)rect->xmax - 0.4f * minsize;
sizex = -sizex;
}
else if (where == 't') {