Skip to content

Commit 44bd3b2

Browse files
committed
Error widget category and size corrections
1 parent f39914d commit 44bd3b2

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

gfx/gfx_widgets.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ void gfx_widgets_msg_queue_push(
205205
msg_widget->hourglass_timer = 0.0f;
206206
msg_widget->flags = 0;
207207

208-
if (prio > 1)
209-
msg_widget->flags |= DISPWIDG_FLAG_SMALL;
210-
211208
if (!(p_dispwidget->flags & DISPGFX_WIDGET_FLAG_MSG_QUEUE_HAS_ICONS))
212209
{
213210
msg_widget->flags |= DISPWIDG_FLAG_UNFOLDED;
@@ -220,6 +217,9 @@ void gfx_widgets_msg_queue_push(
220217
else if (category == MESSAGE_QUEUE_CATEGORY_ERROR)
221218
msg_widget->flags |= DISPWIDG_FLAG_CATEGORY_ERROR;
222219

220+
if (prio > 1 && category != MESSAGE_QUEUE_CATEGORY_ERROR)
221+
msg_widget->flags |= DISPWIDG_FLAG_SMALL;
222+
223223
if (task)
224224
{
225225
len = strlen(task->title);

intl/msg_hash_us.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14695,15 +14695,15 @@ MSG_HASH(
1469514695
)
1469614696
MSG_HASH(
1469714697
MSG_FAILED_TO_LOAD,
14698-
"Failed to load"
14698+
"Failed to load."
1469914699
)
1470014700
MSG_HASH(
1470114701
MSG_FAILED_TO_LOAD_CONTENT,
14702-
"Failed to load content"
14702+
"Failed to load content."
1470314703
)
1470414704
MSG_HASH(
1470514705
MSG_FAILED_TO_LOAD_MOVIE_FILE,
14706-
"Failed to load movie file"
14706+
"Failed to load movie file."
1470714707
)
1470814708
MSG_HASH(
1470914709
MSG_FAILED_TO_LOAD_OVERLAY,

tasks/task_content.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,7 +3133,7 @@ bool content_init(void)
31333133
const char *_msg = msg_hash_to_str(error_enum);
31343134
RARCH_ERR("[Content] %s\n", _msg);
31353135
runloop_msg_queue_push(_msg, strlen(_msg), 2, ret ? 1 : 180, false, NULL,
3136-
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
3136+
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
31373137
}
31383138
break;
31393139
case MSG_UNKNOWN:
@@ -3153,7 +3153,7 @@ bool content_init(void)
31533153
* > This allows any core-generated error messages
31543154
* to propagate through to the frontend */
31553155
runloop_msg_queue_push(error_string, strlen(error_string), 2, ret ? 1 : 180, false, NULL,
3156-
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
3156+
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
31573157
free(error_string);
31583158
}
31593159

0 commit comments

Comments
 (0)