Skip to content

Commit 4979c66

Browse files
committed
Task widget adjustments
1 parent 5acda87 commit 4979c66

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

gfx/gfx_widgets.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ static void gfx_widgets_draw_task_msg(
12021202
msg_queue_current_background = msg_queue_background;
12031203

12041204
if (msg_alternative)
1205-
msg_queue_height *= 1.25f;
1205+
msg_queue_height *= 1.5f;
12061206

12071207
rect_x = p_dispwidget->msg_queue_rect_start_x;
12081208
rect_y = video_height - msg->offset_y;
@@ -1276,14 +1276,8 @@ static void gfx_widgets_draw_task_msg(
12761276
if (!(msg->flags & DISPWIDG_FLAG_TASK_FINISHED))
12771277
{
12781278
texture = MENU_WIDGETS_ICON_HOURGLASS;
1279-
color = msg_queue_task_neutral;
1279+
color = msg_queue_bar;
12801280
radians = msg->hourglass_rotation;
1281-
1282-
if (msg_alternative)
1283-
{
1284-
color = msg_queue_bar;
1285-
gfx_display_set_alpha(color, msg->alpha * 0.5f);
1286-
}
12871281
}
12881282
else if (msg->flags & DISPWIDG_FLAG_POSITIVE)
12891283
{
@@ -1297,7 +1291,10 @@ static void gfx_widgets_draw_task_msg(
12971291
color = msg_queue_task_negative;
12981292
}
12991293

1300-
gfx_display_set_alpha(color, msg->alpha);
1294+
if (msg_alternative)
1295+
gfx_display_set_alpha(color, msg->alpha * 0.5f);
1296+
else
1297+
gfx_display_set_alpha(color, msg->alpha);
13011298

13021299
gfx_widgets_draw_icon(
13031300
userdata,

0 commit comments

Comments
 (0)