mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-09-02 01:39:47 +08:00
Free task thread on exit.
This commit is contained in:
parent
e1fd4f7b09
commit
267d08fbda
@ -951,6 +951,9 @@ void task_exit() {
|
|||||||
if(task_thread_ptr != NULL) {
|
if(task_thread_ptr != NULL) {
|
||||||
svcSignalEvent(events[EVENT_QUIT]);
|
svcSignalEvent(events[EVENT_QUIT]);
|
||||||
threadJoin(task_thread_ptr, U64_MAX);
|
threadJoin(task_thread_ptr, U64_MAX);
|
||||||
|
|
||||||
|
threadFree(task_thread_ptr);
|
||||||
|
task_thread_ptr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < EVENT_COUNT; i++) {
|
for(int i = 0; i < EVENT_COUNT; i++) {
|
||||||
@ -1530,4 +1533,4 @@ void ui_draw_ticket_info(ui_view* view, void* data, float x1, float y1, float x2
|
|||||||
float titleIdX = x1 + (x2 - x1 - titleIdWidth) / 2;
|
float titleIdX = x1 + (x2 - x1 - titleIdWidth) / 2;
|
||||||
float titleIdY = y1 + (y2 - y1) / 2 - 8;
|
float titleIdY = y1 + (y2 - y1) / 2 - 8;
|
||||||
screen_draw_string(buf, titleIdX, titleIdY, 0.5f, 0.5f, 0xFF000000, false);
|
screen_draw_string(buf, titleIdX, titleIdY, 0.5f, 0.5f, 0xFF000000, false);
|
||||||
}
|
}
|
||||||
|
@ -214,4 +214,4 @@ void ui_draw() {
|
|||||||
ui_draw_bottom(ui);
|
ui_draw_bottom(ui);
|
||||||
screen_end_frame();
|
screen_end_frame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user