From 09675c26a94a4489bcf01583c849db14845c139b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 11 Aug 2019 17:49:28 +0200 Subject: [PATCH] Get rid of unused function menu_display_get_tex_coords --- menu/menu_driver.c | 12 ------------ menu/menu_driver.h | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/menu/menu_driver.c b/menu/menu_driver.c index 633fd3125f..470bf30055 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -1268,18 +1268,6 @@ void menu_display_rotate_z(menu_display_ctx_rotate_draw_t *draw, matrix_4x4_multiply(*draw->matrix, matrix_scaled, *draw->matrix); } -bool menu_display_get_tex_coords(menu_display_ctx_coord_draw_t *draw) -{ - if (!draw) - return false; - - if (!menu_disp || !menu_disp->get_default_tex_coords) - return false; - - draw->ptr = menu_disp->get_default_tex_coords(); - return true; -} - static bool menu_driver_load_image(menu_ctx_load_image_t *load_image_info) { if (menu_driver_ctx && menu_driver_ctx->load_image) diff --git a/menu/menu_driver.h b/menu/menu_driver.h index 0d6455bfe2..0a7871139b 100644 --- a/menu/menu_driver.h +++ b/menu/menu_driver.h @@ -624,9 +624,9 @@ void menu_display_draw_texture_slice( int x, int y, unsigned w, unsigned h, unsigned new_w, unsigned new_h, unsigned width, unsigned height, float *color, unsigned offset, float scale_factor, uintptr_t texture); + void menu_display_rotate_z(menu_display_ctx_rotate_draw_t *draw, video_frame_info_t *video_info); -bool menu_display_get_tex_coords(menu_display_ctx_coord_draw_t *draw); void menu_display_timedate(menu_display_ctx_datetime_t *datetime); void menu_display_powerstate(menu_display_ctx_powerstate_t *powerstate);