SDL_GUIDToString() follows the SDL_GetStringRule

Also removed the distinction between SDL_GUID and SDL_JoystickGUID
This commit is contained in:
Sam Lantinga committed 2024-07-19 12:22:03 -07:00
1 parent 892df4bf4b
commit 61a7a0e579
44 files changed
+182 -260

No files matched your search

+2 -2
View File
@@ -222,7 +222,7 @@ static void dump_state(void)
for (i = 0; i < pens_nr; ++i) {
SDL_PenID penid = pens[i];
SDL_GUID guid = SDL_GetPenGUID(penid);
char guid_str[33];
const char *guid_str;
float axes[SDL_PEN_NUM_AXES];
float x, y;
int k;
@@ -232,7 +232,7 @@ static void dump_state(void)
char *type;
char *buttons_str;
SDL_GUIDToString(guid, guid_str, 33);
guid_str = SDL_GUIDToString(guid);
switch (SDL_GetPenType(penid)) {
case SDL_PEN_TYPE_ERASER: