Skip to content

Commit

Permalink
change icon_get_data to icon_get_frame_data
Browse files Browse the repository at this point in the history
  • Loading branch information
rdefeo committed Jun 1, 2024
1 parent e2ad6a1 commit cd30043
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scenes/scene_action_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ static bool scene_action_settings_import_file_browser_callback(
char ext[MAX_EXT_LEN];
path_extract_extension(path, ext, MAX_EXT_LEN);
if(!strcmp(ext, ".sub")) {
memcpy(*icon, icon_get_data(&I_SubGHz_10px), 32); // TODO: find the right size!
memcpy(*icon, icon_get_frame_data(&I_SubGHz_10px, 0), 32); // TODO: find the right size!
} else if(!strcmp(ext, ".rfid")) {
memcpy(*icon, icon_get_data(&I_RFID_10px), 32);
memcpy(*icon, icon_get_frame_data(&I_RFID_10px, 0), 32);
} else if(!strcmp(ext, ".ir")) {
memcpy(*icon, icon_get_data(&I_IR_10px), 32);
memcpy(*icon, icon_get_frame_data(&I_IR_10px, 0), 32);
} else if(!strcmp(ext, ".nfc")) {
memcpy(*icon, icon_get_data(&I_NFC_10px), 32);
memcpy(*icon, icon_get_frame_data(&I_NFC_10px, 0), 32);
} else if(!strcmp(ext, ".qpl")) {
memcpy(*icon, icon_get_data(&I_Playlist_10px), 32);
memcpy(*icon, icon_get_frame_data(&I_Playlist_10px, 0), 32);
} else {
return false;
}
Expand Down

0 comments on commit cd30043

Please sign in to comment.