Removed non-float versions of SDL render API drawing functions

This simplifies the API and removes a level of API translation between the int variants of the functions and the float implementation

Fixes https://github.com/libsdl-org/SDL/issues/6656
This commit is contained in:
Sam Lantinga
2022-12-31 11:19:32 -08:00
parent bf76fc6b05
commit 9c1a9ecb4b
29 changed files with 465 additions and 1119 deletions

View File

@@ -91,11 +91,11 @@ PrintJoystick(SDL_Joystick *joy)
static void
DrawRect(SDL_Renderer *r, const int x, const int y, const int w, const int h)
{
SDL_Rect area;
area.x = x;
area.y = y;
area.w = w;
area.h = h;
SDL_FRect area;
area.x = (float)x;
area.y = (float)y;
area.w = (float)w;
area.h = (float)h;
SDL_RenderFillRect(r, &area);
}