Skip to content

Commit

Permalink
fix the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
captain0xff committed Oct 25, 2024
1 parent 0267ea1 commit e1bad6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/testgputext.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ int main(int argc, char *argv[])
.dst_color_blendfactor = SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_ALPHA
}
}},
.has_depth_stencil_target = false,
.depth_stencil_format = SDL_GPU_TEXTUREFORMAT_INVALID /* Neex to set this to avoid missing initializer for field error */
},
.vertex_input_state = (SDL_GPUVertexInputState){
.num_vertex_buffers = 1,
Expand Down
8 changes: 4 additions & 4 deletions src/SDL_gpu_textengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,10 @@ static AtlasDrawSequence *CreateDrawSequence(TTF_DrawOperation *ops, int num_ops
break;
}

float minx = dst->x;
float maxx = dst->x + dst->w;
float miny = dst->y;
float maxy = dst->y + dst->h;
float minx = (float)dst->x;
float maxx = (float)(dst->x + dst->w);
float miny = (float)dst->y;
float maxy = (float)(dst->y + dst->h);

// In the GPU API postive y-axis is upwards so the signs of the y-coords is reversed
*xy++ = minx;
Expand Down

0 comments on commit e1bad6c

Please sign in to comment.