Merge pull request #12856 from jdgleaver/gfx-display-unused-vars

(gfx_display.c) Remove unused variables
This commit is contained in:
Autechre 2021-08-23 14:06:57 +02:00 committed by GitHub
commit 1ad0251da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1144,8 +1144,6 @@ void gfx_display_draw_keyboard(
0.00, 0.00, 0.00, 0.85, 0.00, 0.00, 0.00, 0.85,
0.00, 0.00, 0.00, 0.85, 0.00, 0.00, 0.00, 0.85,
}; };
struct video_coords coords;
gfx_display_ctx_draw_t draw;
math_matrix_4x4 mymat; math_matrix_4x4 mymat;
gfx_display_ctx_rotate_draw_t rotate_draw; gfx_display_ctx_rotate_draw_t rotate_draw;
rotate_draw.matrix = &mymat; rotate_draw.matrix = &mymat;
@ -1155,12 +1153,6 @@ void gfx_display_draw_keyboard(
rotate_draw.scale_z = 1; rotate_draw.scale_z = 1;
rotate_draw.scale_enable = true; rotate_draw.scale_enable = true;
coords.vertices = 4;
coords.vertex = NULL;
coords.tex_coord = NULL;
coords.lut_tex_coord = NULL;
coords.color = (const float*)&white[0];
gfx_display_draw_quad( gfx_display_draw_quad(
p_disp, p_disp,
userdata, userdata,
@ -1183,9 +1175,6 @@ void gfx_display_draw_keyboard(
gfx_display_rotate_z(p_disp, &rotate_draw, userdata); gfx_display_rotate_z(p_disp, &rotate_draw, userdata);
draw.coords = &coords;
draw.matrix_data = &mymat;
for (i = 0; i < 44; i++) for (i = 0; i < 44; i++)
{ {
int line_y = (i / 11) * video_height / 10.0; int line_y = (i / 11) * video_height / 10.0;