mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 06:15:35 +00:00
SDL_render.c: lighten the cast syntax
This commit is contained in:
parent
50d49c63ed
commit
4342e6bd21
|
@ -3585,11 +3585,11 @@ SDL_RenderGeometry(SDL_Renderer *renderer,
|
|||
const int *indices, int num_indices)
|
||||
{
|
||||
if (vertices) {
|
||||
const float *xy = &vertices[0].position.x;
|
||||
const float *xy = &vertices->position;
|
||||
int xy_stride = sizeof (SDL_Vertex);
|
||||
const SDL_Color *color = &vertices[0].color;
|
||||
const SDL_Color *color = &vertices->color;
|
||||
int color_stride = sizeof (SDL_Vertex);
|
||||
const float *uv = &vertices[0].tex_coord.x;
|
||||
const float *uv = &vertices->tex_coord;
|
||||
int uv_stride = sizeof (SDL_Vertex);
|
||||
int size_indices = 4;
|
||||
return SDL_RenderGeometryRaw(renderer, texture, xy, xy_stride, color, color_stride, uv, uv_stride, num_vertices, indices, num_indices, size_indices);
|
||||
|
|
Loading…
Reference in a new issue