From 2f30f7a6bd47c79a6ed5d94792be2518b8931082 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 24 Sep 2025 17:14:53 -0400 Subject: [PATCH] examples/misc/02-clipboard: Patched to compile on Visual Studio. --- examples/misc/02-clipboard/clipboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/misc/02-clipboard/clipboard.c b/examples/misc/02-clipboard/clipboard.c index afe8b133fd..4e62b4ff36 100644 --- a/examples/misc/02-clipboard/clipboard.c +++ b/examples/misc/02-clipboard/clipboard.c @@ -64,7 +64,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) copybuttonrect.x = currenttimerect.x + currenttimerect.w + 30; copybuttonrect.y = currenttimerect.y; - copybuttonrect.w = (SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE * SDL_strlen(copybuttonstr)) + 10; + copybuttonrect.w = (float) ((SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE * SDL_strlen(copybuttonstr)) + 10); copybuttonrect.h = currenttimerect.h; pastetextrect.x = 10; @@ -72,7 +72,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) pastetextrect.w = 620; pastetextrect.h = ((480 - pastetextrect.y) - copybuttonrect.h) - 20; - pastebuttonrect.w = (SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE * SDL_strlen(pastebuttonstr)) + 10; + pastebuttonrect.w = (float) ((SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE * SDL_strlen(pastebuttonstr)) + 10); pastebuttonrect.x = (640 - pastebuttonrect.w) / 2.0f; pastebuttonrect.y = pastetextrect.y + pastetextrect.h + 10; pastebuttonrect.h = copybuttonrect.h;