Cleanup: style
This commit is contained in:
@@ -1028,7 +1028,7 @@ static void icon_draw_rect(float x, float y, int w, int h, float UNUSED(aspect),
|
||||
* efficient than simple glUniform calls. */
|
||||
#define ICON_DRAW_CACHE_SIZE 16
|
||||
|
||||
typedef struct IconDrawCall{
|
||||
typedef struct IconDrawCall {
|
||||
rctf pos;
|
||||
rctf tex;
|
||||
float color[4];
|
||||
|
||||
@@ -1131,8 +1131,7 @@ static void widgetbase_draw(uiWidgetBase *wtb, uiWidgetColors *wcol)
|
||||
}
|
||||
}
|
||||
|
||||
if (wtb->tria1.type != ROUNDBOX_TRIA_NONE)
|
||||
{
|
||||
if (wtb->tria1.type != ROUNDBOX_TRIA_NONE) {
|
||||
tria_col[0] = wcol->item[0];
|
||||
tria_col[1] = wcol->item[1];
|
||||
tria_col[2] = wcol->item[2];
|
||||
@@ -1162,7 +1161,7 @@ static void widgetbase_draw(uiWidgetBase *wtb, uiWidgetColors *wcol)
|
||||
|
||||
/* for each AA step */
|
||||
immBegin(GWN_PRIM_TRIS, (wtb->tria1.tot + wtb->tria2.tot) * 3 * WIDGET_AA_JITTER);
|
||||
if (wtb->tria1.tot){
|
||||
if (wtb->tria1.tot) {
|
||||
shape_preset_draw_trias_aa(&wtb->tria1, pos);
|
||||
}
|
||||
if (wtb->tria2.tot) {
|
||||
|
||||
Reference in New Issue
Block a user