From f55a410c4893422aa35268d9722c4956efc03684 Mon Sep 17 00:00:00 2001 From: thhoang99 Date: Wed, 2 Nov 2016 20:51:43 +0700 Subject: [PATCH] Fix UI2 --- UI2.c | 486 +++++++++++++++++++++++++++----------------------- UI2.h | 5 + theme.c | 3 +- touch_shell.c | 4 +- utils.c | 2 +- utils.h | 2 +- 6 files changed, 269 insertions(+), 233 deletions(-) diff --git a/UI2.c b/UI2.c index 0186c57..bd2745b 100644 --- a/UI2.c +++ b/UI2.c @@ -61,14 +61,6 @@ static unsigned short int vita_port; char henkaku_config_path[32]; -int is_molecular_shell = 0; - -// Enter and cancel buttons -int SCE_CTRL_ENTER = SCE_CTRL_CROSS, SCE_CTRL_CANCEL = SCE_CTRL_CIRCLE; - -// Dialog step -volatile int dialog_step = DIALOG_STEP_NONE; - static List toolbox_list; ///////////////////////////////////////////////////////////////////////////////////////// @@ -118,6 +110,21 @@ static void dirUp() { base_pos = base_pos_list[dir_level]; rel_pos = rel_pos_list[dir_level]; dirUpCloseArchive(); + + int cnt = 0; + while (true) { + int a = START_Y + (cnt * (height_item + length_border)); + if (a < SCREEN_HEIGHT - 10) + cnt++; + else + break; + } + float a = (cnt * (height_item + length_border)) - length_border; + float b = ((rel_pos / length_row_items) * (height_item + length_border)) - length_border; + float x = - ((rel_pos / length_row_items - cnt + 1) * (height_item + length_border)) - length_border + (a - b); + if (x > 0) x = 0; + + slide_value = x; } static void setFocusOnFilename(char *name) { @@ -356,7 +363,7 @@ enum ListToolboxEntrys { LIST_TOOLBOX_ENTRY_SYSINFO, }; -ListEntry list_toolbox_entries[] = { +static ListEntry list_toolbox_entries[] = { { SYSINFO_TITLE }, }; @@ -1334,14 +1341,9 @@ static int dialogSteps() { bool Change_UI = false; bool touch_nothing = false; - float ani_extend_bg_up = 0; int MAX_NAME_WIDTH_TILE = 0; -int length_row_items = 7; -float length_border = 5.0f; -float width_item = 0; -float height_item = 0; float max_extend_item_value = 10; int animate_extend_item = 0; int animate_extend_item_pos = 0; @@ -1556,39 +1558,44 @@ void refreshUI2(){ MAX_NAME_WIDTH_TILE = width_item; } -static void fileBrowserMenuCtrl2() { - if(!notification_on){ +static int fileBrowserMenuCtrl2() { + int refresh = 0; + if(!notification_on){ - // Show toolbox list dialog - if (current_buttons & SCE_CTRL_START) { - if (getListDialogMode() == LIST_DIALOG_CLOSE) { - toolbox_list.title = TOOLBOX; - toolbox_list.list_entries = list_toolbox_entries; - toolbox_list.n_list_entries = N_LIST_TOOLBOX_ENTRIES; - toolbox_list.can_escape = 1; - toolbox_list.listSelectCallback = listToolboxEnterCallback; - - loadListDialog(&toolbox_list); - } + // Change UI + if (current_buttons & SCE_CTRL_LTRIGGER && pressed_buttons & SCE_CTRL_LEFT ) { + Change_UI = false; + } + + // Settings menu + if (pressed_buttons & SCE_CTRL_START) { + openSettingsMenu(); } - // Change UI - if (pressed_buttons & SCE_CTRL_RTRIGGER) { - Change_UI = false; + // Change sort mode + if (pressed_buttons & SCE_CTRL_RTRIGGER) { + if (sort_mode == SORT_BY_NAME) + sort_mode = SORT_BY_SIZE; + else if (sort_mode == SORT_BY_SIZE) + sort_mode = SORT_BY_DATE; + else if (sort_mode == SORT_BY_DATE) + sort_mode = SORT_BY_NAME; + + refresh = 1; } if (current_buttons & SCE_CTRL_LTRIGGER && pressed_buttons & SCE_CTRL_UP ) { - if (length_row_items + 1 < 9) { - length_row_items++; - refreshUI2(); - } + if (length_row_items + 1 < 9) { + length_row_items++; + refreshUI2(); + } } if (current_buttons & SCE_CTRL_LTRIGGER && pressed_buttons & SCE_CTRL_DOWN ) { - if (length_row_items - 1 > 5) { - length_row_items--; - refreshUI2(); - } + if (length_row_items - 1 > 5) { + length_row_items--; + refreshUI2(); + } } // FTP @@ -1705,221 +1712,222 @@ static void fileBrowserMenuCtrl2() { } } } - /* - //Slide up - if (TOUCH_BACK() == 6) { - //Reset state everytime TOUCH_BACK called - State_Touch_Back = -1; + /* + //Slide up + if (TOUCH_BACK() == 6) { + //Reset state everytime TOUCH_BACK called + State_Touch_Back = -1; - if ((slide_value > -slide_value_limit)) { - if (slide_value_limit > SCREEN_HEIGHT - START_Y - height_item) { - slide_value -= slide_value - (-(pre_touch_back_y - touch_back.report[0].y) + slide_value_hold2); - if (slide_value < -slide_value_limit) - slide_value = -slide_value_limit ; - } - } - else { + if ((slide_value > -slide_value_limit)) { + if (slide_value_limit > SCREEN_HEIGHT - START_Y - height_item) { + slide_value -= slide_value - (-(pre_touch_back_y - touch_back.report[0].y) + slide_value_hold2); + if (slide_value < -slide_value_limit) + slide_value = -slide_value_limit ; + } + } + else { - //pre_touch_y = touch.report[0].y; - animate_slide = true; - Position = -slide_value_limit; - } + //pre_touch_y = touch.report[0].y; + animate_slide = true; + Position = -slide_value_limit; + } - } - - //Slide down - if (TOUCH_BACK() == 7) { - //Reset state everytime TOUCH_BACK called - State_Touch_Back = -1; + } - if((slide_value < 0)) { - slide_value -= slide_value - ((touch_back.report[0].y - pre_touch_back_y) + slide_value_hold2); - if (slide_value < -slide_value_limit) - slide_value = 0; - } - else { + //Slide down + if (TOUCH_BACK() == 7) { + //Reset state everytime TOUCH_BACK called + State_Touch_Back = -1; + + if((slide_value < 0)) { + slide_value -= slide_value - ((touch_back.report[0].y - pre_touch_back_y) + slide_value_hold2); + if (slide_value < -slide_value_limit) + slide_value = 0; + } + else { - //pre_touch_y = touch.report[0].y; - animate_slide = true; - Position = 0; - } - }*/ + //pre_touch_y = touch.report[0].y; + animate_slide = true; + Position = 0; + } + }*/ - // Move - if (hold_buttons & SCE_CTRL_UP || hold2_buttons & SCE_CTRL_LEFT_ANALOG_UP) { - if ((rel_pos - length_row_items) > 0) { - rel_pos -= length_row_items; - } - else { - rel_pos = 0; - } - return_current_pos(); - } else if (hold_buttons & SCE_CTRL_DOWN || hold2_buttons & SCE_CTRL_LEFT_ANALOG_DOWN ) { - if ((rel_pos + length_row_items) < file_list.length) { - rel_pos += length_row_items; - } - else { - rel_pos = file_list.length - 1; - } - return_current_pos(); - } else if (hold_buttons & SCE_CTRL_RIGHT || hold2_buttons & SCE_CTRL_LEFT_ANALOG_RIGHT) { - if ((rel_pos + 1) < file_list.length) { - if ((rel_pos + 1) < file_list.length) { - rel_pos++; - } - } - return_current_pos(); - } else if (hold_buttons & SCE_CTRL_LEFT || hold2_buttons & SCE_CTRL_LEFT_ANALOG_LEFT) { - if (rel_pos > 0) { - rel_pos--; - } - return_current_pos(); - } + // Move + if (hold_buttons & SCE_CTRL_UP || hold2_buttons & SCE_CTRL_LEFT_ANALOG_UP) { + if ((rel_pos - length_row_items) > 0) { + rel_pos -= length_row_items; + } + else { + rel_pos = 0; + } + return_current_pos(); + } else if (hold_buttons & SCE_CTRL_DOWN || hold2_buttons & SCE_CTRL_LEFT_ANALOG_DOWN ) { + if ((rel_pos + length_row_items) < file_list.length) { + rel_pos += length_row_items; + } + else { + rel_pos = file_list.length - 1; + } + return_current_pos(); + } else if (hold_buttons & SCE_CTRL_RIGHT || hold2_buttons & SCE_CTRL_LEFT_ANALOG_RIGHT) { + if ((rel_pos + 1) < file_list.length) { + if ((rel_pos + 1) < file_list.length) { + rel_pos++; + } + } + return_current_pos(); + } else if (hold_buttons & SCE_CTRL_LEFT || hold2_buttons & SCE_CTRL_LEFT_ANALOG_LEFT) { + if (rel_pos > 0) { + rel_pos--; + } + return_current_pos(); + } - // Not at 'home' + // Not at 'home' if (dir_level > 0) { - // Context menu trigger - if (pressed_buttons & SCE_CTRL_TRIANGLE) { - if (getContextMenuMode() == CONTEXT_MENU_CLOSED) { - setContextMenuVisibilities(); - setContextMenuMode(CONTEXT_MENU_OPENING); - } - } - - // Mark entry - if ((pressed_buttons & SCE_CTRL_SQUARE) || ((TOUCH_FRONT() == 3) & !touch_nothing )) { - State_Touch = -1; - - if ((touch_nothing) || lerp(pre_touch_y, 1088, SCREEN_HEIGHT) < START_Y) { - touch_nothing = false; - //have_touch_hold = false; - return; - } - - FileListEntry *file_entry = fileListGetNthEntry(&file_list, rel_pos); - if (strcmp(file_entry->name, DIR_UP) != 0) { - if (!fileListFindEntry(&mark_list, file_entry->name)) { - FileListEntry *mark_entry = malloc(sizeof(FileListEntry)); - memcpy(mark_entry, file_entry, sizeof(FileListEntry)); - fileListAddEntry(&mark_list, mark_entry, SORT_NONE); - } else { - fileListRemoveEntryByName(&mark_list, file_entry->name); - } - } - } - - // Back - if (pressed_buttons & SCE_CTRL_CANCEL || (TOUCH_FRONT() == 10)) { - State_Touch = -1; - //reset position to top - slide_value = 0; - Position = 0; - - fileListEmpty(&mark_list); - dirUp(); - refreshFileList(); - } + // Context menu trigger + if (pressed_buttons & SCE_CTRL_TRIANGLE) { + if (getContextMenuMode() == CONTEXT_MENU_CLOSED) { + setContextMenuVisibilities(); + setContextMenuMode(CONTEXT_MENU_OPENING); } + } - - if (pressed_buttons & SCE_CTRL_ENTER || ((TOUCH_FRONT() == 1) || (TOUCH_FRONT() == 2) & (lerp(touch.report[0].y, 1088, SCREEN_HEIGHT) > START_Y))) { + // Mark entry + if ((pressed_buttons & SCE_CTRL_SQUARE) || ((TOUCH_FRONT() == 3) & !touch_nothing )) { State_Touch = -1; if ((touch_nothing) || lerp(pre_touch_y, 1088, SCREEN_HEIGHT) < START_Y) { touch_nothing = false; //have_touch_hold = false; - return; + return 0; } + FileListEntry *file_entry = fileListGetNthEntry(&file_list, rel_pos); + if (strcmp(file_entry->name, DIR_UP) != 0) { + if (!fileListFindEntry(&mark_list, file_entry->name)) { + FileListEntry *mark_entry = malloc(sizeof(FileListEntry)); + memcpy(mark_entry, file_entry, sizeof(FileListEntry)); + fileListAddEntry(&mark_list, mark_entry, SORT_NONE); + } else { + fileListRemoveEntryByName(&mark_list, file_entry->name); + } + } + } + + // Back + if (pressed_buttons & SCE_CTRL_CANCEL || (TOUCH_FRONT() == 10)) { + State_Touch = -1; + //reset position to top + slide_value = 0; + Position = 0; + fileListEmpty(&mark_list); + dirUp(); + refreshFileList(); + } + } - // Handle file or folder - FileListEntry *file_entry = fileListGetNthEntry(&file_list, rel_pos); - if (file_entry->is_folder) { + + if (pressed_buttons & SCE_CTRL_ENTER || ((TOUCH_FRONT() == 1) || (TOUCH_FRONT() == 2) & (lerp(touch.report[0].y, 1088, SCREEN_HEIGHT) > START_Y))) { + State_Touch = -1; - //reset position to top - slide_value = 0; - Position = 0; + if ((touch_nothing) || lerp(pre_touch_y, 1088, SCREEN_HEIGHT) < START_Y) { + touch_nothing = false; + //have_touch_hold = false; + return 0; + } - if (strcmp(file_entry->name, DIR_UP) == 0) { - dirUp(); - } else { - if (dir_level == 0) { - strcpy(file_list.path, file_entry->name); - } else { - if (dir_level > 1) - addEndSlash(file_list.path); - strcat(file_list.path, file_entry->name); - } + fileListEmpty(&mark_list); - dirLevelUp(); - } + // Handle file or folder + FileListEntry *file_entry = fileListGetNthEntry(&file_list, rel_pos); + if (file_entry->is_folder) { - // Save last dir - WriteFile(VITASHELL_LASTDIR, file_list.path, strlen(file_list.path) + 1); + //reset position to top + slide_value = 0; + Position = 0; - // Open folder - int res = refreshFileList(); - if (res < 0) - errorDialog(res); + if (strcmp(file_entry->name, DIR_UP) == 0) { + dirUp(); } else { - snprintf(cur_file, MAX_PATH_LENGTH, "%s%s", file_list.path, file_entry->name); - int type = handleFile(cur_file, file_entry); - - // Archive mode - if (type == FILE_TYPE_ZIP) { - slide_value = 0; - is_in_archive = 1; - dir_level_archive = dir_level; + if (dir_level == 0) { + strcpy(file_list.path, file_entry->name); + } else { + if (dir_level > 1) + addEndSlash(file_list.path); + strcat(file_list.path, file_entry->name); + } - snprintf(archive_path, MAX_PATH_LENGTH, "%s%s", file_list.path, file_entry->name); - - strcat(file_list.path, file_entry->name); - addEndSlash(file_list.path); - - dirLevelUp(); - refreshFileList(); - - } + dirLevelUp(); } + + // Save last dir + WriteFile(VITASHELL_LASTDIR, file_list.path, strlen(file_list.path) + 1); + + // Open folder + int res = refreshFileList(); + if (res < 0) + errorDialog(res); + } else { + snprintf(cur_file, MAX_PATH_LENGTH, "%s%s", file_list.path, file_entry->name); + int type = handleFile(cur_file, file_entry); + + // Archive mode + if (type == FILE_TYPE_ZIP) { + slide_value = 0; + is_in_archive = 1; + dir_level_archive = dir_level; + + snprintf(archive_path, MAX_PATH_LENGTH, "%s%s", file_list.path, file_entry->name); + + strcat(file_list.path, file_entry->name); + addEndSlash(file_list.path); + + dirLevelUp(); + refreshFileList(); + } + } } - } - else { - if (TOUCH_FRONT() == 0) { - //Reset state everytime TOUCH_FRONT called - State_Touch = -1; - have_touch = true; - float x = lerp(touch.report[0].x, 1920, SCREEN_WIDTH); - float y = lerp(touch.report[0].y, 1088, SCREEN_HEIGHT); + } + else { + if (TOUCH_FRONT() == 0) { + //Reset state everytime TOUCH_FRONT called + State_Touch = -1; + have_touch = true; + float x = lerp(touch.report[0].x, 1920, SCREEN_WIDTH); + float y = lerp(touch.report[0].y, 1088, SCREEN_HEIGHT); - if ((x > SHELL_MARGIN_X_CUSTOM) & (x < SHELL_MARGIN_X_CUSTOM + width_item_notification)) - if ((y > START_Y + 10) & (y < START_Y + 10 + height_item_notification)) { + if ((x > SHELL_MARGIN_X_CUSTOM) & (x < SHELL_MARGIN_X_CUSTOM + width_item_notification)) + if ((y > START_Y + 10) & (y < START_Y + 10 + height_item_notification)) { - toggle_item_notification[0] = !toggle_item_notification[0]; + toggle_item_notification[0] = !toggle_item_notification[0]; - } - } + + } - //Slide up close notification - if (TOUCH_FRONT() == 6) { - //Reset state everytime TOUCH_FRONT called - State_Touch = -1; - if (pre_touch_y > SCREEN_HEIGHT - HEIGHT_TITLE_BAR) { - float n_y = lerp(touch.report[0].y, 1088, SCREEN_HEIGHT); - slide_value_notification = n_y; - } - } + //Slide up close notification + if (TOUCH_FRONT() == 6) { + //Reset state everytime TOUCH_FRONT called + State_Touch = -1; + if (pre_touch_y > SCREEN_HEIGHT - HEIGHT_TITLE_BAR) { + float n_y = lerp(touch.report[0].y, 1088, SCREEN_HEIGHT); + slide_value_notification = n_y; + } + } - if (hold_buttons & SCE_CTRL_UP || hold2_buttons & SCE_CTRL_LEFT_ANALOG_UP) { - notification_close = true; - } - + if (hold_buttons & SCE_CTRL_UP || hold2_buttons & SCE_CTRL_LEFT_ANALOG_UP) { + notification_close = true; } + + } + return refresh; } + void drawScrollBar2(int file_list_length) { if (((file_list_length / length_row_items) + 1) * (height_item + length_border) > SCREEN_HEIGHT - START_Y) { @@ -2186,10 +2194,10 @@ void DrawItem(FileListEntry *file_entry, float x, float y, float extend_item_val static void mainUI2() { // Start drawing - vita2d_start_drawing(); + vita2d_start_drawing(); //startDrawing(bg_browser_image); - drawingWallpaperUI2(default_wallpaper, 0, START_Y - 1 - max_extend_item_value , 0 , START_Y - 1 - max_extend_item_value, SCREEN_WIDTH, vita2d_texture_get_height(default_wallpaper), 1); + drawingWallpaperUI2(default_wallpaper, 0, START_Y - 1 - max_extend_item_value , 0 , START_Y - 1 - max_extend_item_value, SCREEN_WIDTH, vita2d_texture_get_height(default_wallpaper)); // Draw scroll bar drawScrollBar2(file_list.length); @@ -2271,7 +2279,7 @@ static void mainUI2() { int a = x_pos_item_old - animate_extend_item; int b = y_pos_item_old - animate_extend_item + slide_value; - drawingWallpaperUI2(default_wallpaper, a- 1, b, a - 1, b, width_item + 2*animate_extend_item, height_item + 2*animate_extend_item, 0); + drawingWallpaperUI2(default_wallpaper, a- 1, b, a - 1, b, width_item + 2*animate_extend_item, height_item + 2*animate_extend_item); DrawItem(file_entry2, x_pos_item_old, y_pos_item_old, animate_extend_item); if (ani_extend_bg_up < max_extend_item_value) ani_extend_bg_up ++; @@ -2282,8 +2290,9 @@ static void mainUI2() { ani_extend_bg_up --; } - drawingWallpaperUI2(default_wallpaper, 0, 0 ,0 , 0, SCREEN_WIDTH, START_Y - 1 - ani_extend_bg_up, 0); + drawingWallpaperUI2(default_wallpaper, 0, 0 ,0 , 0, SCREEN_WIDTH, START_Y - 1 - ani_extend_bg_up); + // Draw shell info drawShellInfo2(file_list.path); @@ -2407,7 +2416,7 @@ static void mainUI2() { } void shellUI2() { - // Position + // Position memset(base_pos_list, 0, sizeof(base_pos_list)); memset(rel_pos_list, 0, sizeof(rel_pos_list)); @@ -2420,6 +2429,7 @@ void shellUI2() { memset(&mark_list, 0, sizeof(FileList)); memset(©_list, 0, sizeof(FileList)); memset(&install_list, 0, sizeof(FileList)); + // Current path is 'home' strcpy(file_list.path, HOME_PATH); @@ -2475,6 +2485,10 @@ void shellUI2() { context_menu.menuEnterCallback = contextMenuEnterCallback; context_menu.menuMoreEnterCallback = contextMenuMoreEnterCallback; + + // Init settings menu + initSettingsMenu(); + refreshUI2(); while (1) { @@ -2485,42 +2499,57 @@ void shellUI2() { int refresh = 0; // Control - if (dialog_step == DIALOG_STEP_NONE) { - if (getContextMenuMode() != CONTEXT_MENU_CLOSED) { + if (dialog_step != DIALOG_STEP_NONE) { + refresh = dialogSteps(); + } else { + if (getSettingsMenuStatus() != SETTINGS_MENU_CLOSED) { + settingsMenuCtrl(); + } else if (getContextMenuMode() != CONTEXT_MENU_CLOSED) { contextMenuCtrl(&context_menu); + } else if (getPropertyDialogStatus() != PROPERTY_DIALOG_CLOSED) { + propertyDialogCtrl(); } else if (getListDialogMode() != LIST_DIALOG_CLOSE) { listDialogCtrl(); } else { - fileBrowserMenuCtrl2(); + refresh = fileBrowserMenuCtrl2(); } - } else { - refresh = dialogSteps(); } // Receive system event SceAppMgrSystemEvent event; sceAppMgrReceiveSystemEvent(&event); + // Refresh on app resume if (event.systemEvent == SCE_APPMGR_SYSTEMEVENT_ON_RESUME) { - refresh = 1; + refresh = REFRESH_MODE_NORMAL; } - if (refresh) { + if (refresh != REFRESH_MODE_NONE) { // Refresh lists refreshFileList(); refreshMarkList(); refreshCopyList(); - } - mainUI2(); + // Focus + if (refresh == REFRESH_MODE_SETFOCUS) + setFocusOnFilename(focus_name); + } + mainUI2(); + + // Draw settings menu + drawSettingsMenu(); + // Draw context menu drawContextMenu(&context_menu); // Draw list dialog drawListDialog(); + // Draw property dialog + drawPropertyDialog(); + // End drawing endDrawing(); @@ -2558,6 +2587,7 @@ static void initContextMenuWidth() { } int UI2() { + // Init context menu width initContextMenuWidth(); initTextContextMenuWidth(); diff --git a/UI2.h b/UI2.h index 811d2a0..4c643cd 100644 --- a/UI2.h +++ b/UI2.h @@ -89,6 +89,11 @@ extern vita2d_texture *zip_file_image, *txt_file_image, *title_bar_bg_image, *up extern bool Change_UI; +int length_row_items = 7; +float length_border = 5.0f; +float width_item = 0; +float height_item = 0; + int UI2(); diff --git a/theme.c b/theme.c index be4e535..d9b4a59 100644 --- a/theme.c +++ b/theme.c @@ -190,7 +190,8 @@ ThemeImage theme_images[] = { { "fastforward.png", &_binary_resources_fastforward_png_start, &fastforward_image }, { "fastrewind.png", &_binary_resources_fastrewind_png_start, &fastrewind_image }, { "wallpaper.png", NULL, &wallpaper_image }, - + + { "bg_wallpaper.png", &_binary_resources_bg_wallpaper_png_start, &default_wallpaper }, { "vita_game_card.png", &_binary_resources_vita_game_card_png_start, &game_card_image }, { "vita_game_card_storage.png", &_binary_resources_vita_game_card_storage_png_start, &game_card_storage_image }, { "memory_card.png", &_binary_resources_memory_card_png_start, &memory_card_image }, diff --git a/touch_shell.c b/touch_shell.c index f35ed57..f89b1ba 100644 --- a/touch_shell.c +++ b/touch_shell.c @@ -5,8 +5,8 @@ bool touch_press = false; SceTouchData touch; int countTouch = 0; -int pre_touch_y = 0; -int pre_touch_x = 0; +int pre_touch_x = 966; +int pre_touch_y = 544; //bool touch_nothing = false; // State_Touch is global value to certain function TOUCH_FRONT alway return absolute one value for one time. diff --git a/utils.c b/utils.c index 05ba964..46abafd 100644 --- a/utils.c +++ b/utils.c @@ -46,7 +46,7 @@ void startDrawing(vita2d_texture *bg) { } } -void drawingWallpaperUI2(vita2d_texture *bg,float x, float y, float tex_x, float tex_y, float tex_w, float tex_h, int change) { +void drawingWallpaperUI2(vita2d_texture *bg,float x, float y, float tex_x, float tex_y, float tex_w, float tex_h) { if (wallpaper_image) { vita2d_draw_texture_part(wallpaper_image, x, y, tex_x, tex_y, tex_w, tex_h); } else if (bg) { diff --git a/utils.h b/utils.h index d476a81..ddda5b3 100644 --- a/utils.h +++ b/utils.h @@ -48,7 +48,7 @@ extern SceCtrlData pad; extern uint32_t old_buttons, current_buttons, pressed_buttons, hold_buttons, hold2_buttons, released_buttons; void startDrawing(vita2d_texture *bg); -void drawingWallpaperUI2(vita2d_texture *bg,float x, float y, float tex_x, float tex_y, float tex_w, float tex_h, int change); +void drawingWallpaperUI2(vita2d_texture *bg,float x, float y, float tex_x, float tex_y, float tex_w, float tex_h); void endDrawing(); void closeWaitDialog();