Skip to content

Commit 7262be8

Browse files
committed
Minor format tweaks
1 parent 4da3991 commit 7262be8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/platforms/rcore_desktop_sdl.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ static const int CursorsLUT[] = {
252252
//SDL_SYSTEM_CURSOR_WAITARROW, // No equivalent implemented on MouseCursor enum on raylib.h
253253
};
254254

255-
256-
// SDL3 Migration Layer made to avoid `ifdefs` inside functions when we can.
255+
// SDL3 Migration Layer made to avoid 'ifdefs' inside functions when we can.
257256
#if defined(PLATFORM_DESKTOP_SDL3)
258257

259258
// SDL3 Migration:
@@ -304,13 +303,13 @@ int SDL_GetNumVideoDisplays(void)
304303
int monitorCount = 0;
305304
SDL_DisplayID *displays = SDL_GetDisplays(&monitorCount);
306305

307-
// Safe because If `mem` is NULL, SDL_free does nothing
306+
// Safe because If 'mem' is NULL, SDL_free does nothing
308307
SDL_free(displays);
309308

310309
return monitorCount;
311310
}
312311

313-
// SLD3 Migration: To emulate SDL2 this function should return `SDL_DISABLE` or `SDL_ENABLE`
312+
// SLD3 Migration: To emulate SDL2 this function should return 'SDL_DISABLE' or 'SDL_ENABLE'
314313
// representing the *processing state* of the event before this function makes any changes to it
315314
Uint8 SDL_EventState(Uint32 type, int state)
316315
{
@@ -581,7 +580,7 @@ void SetWindowState(unsigned int flags)
581580
if (flags & FLAG_WINDOW_UNFOCUSED)
582581
{
583582
// NOTE: To be able to implement this part it seems that we should
584-
// do it ourselves, via `Windows.h`, `X11/Xlib.h` or even `Cocoa.h`
583+
// do it ourselves, via 'windows.h', 'X11/Xlib.h' or even 'Cocoa.h'
585584
TRACELOG(LOG_WARNING, "SetWindowState() - FLAG_WINDOW_UNFOCUSED is not supported on PLATFORM_DESKTOP_SDL");
586585
}
587586
if (flags & FLAG_WINDOW_TOPMOST)
@@ -1169,13 +1168,13 @@ Image GetClipboardImage(void)
11691168
image = LoadImageFromMemory(imageExtensions[i], fileData, dataSize);
11701169
if (IsImageValid(image))
11711170
{
1172-
TRACELOG(LOG_INFO, "Clipboard image: Got image from clipboard as a `%s` successfully", imageExtensions[i]);
1171+
TRACELOG(LOG_INFO, "Clipboard: Got image from clipboard successfully: %s", imageExtensions[i]);
11731172
return image;
11741173
}
11751174
}
11761175
}
11771176

1178-
if (!IsImageValid(image)) TRACELOG(LOG_WARNING, "Clipboard image: Couldn't get clipboard data. Error: %s", SDL_GetError());
1177+
if (!IsImageValid(image)) TRACELOG(LOG_WARNING, "Clipboard: Couldn't get clipboard data. ERROR: %s", SDL_GetError());
11791178
#endif
11801179

11811180
return image;

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ const char *TextFormat(const char *text, ...); // Formatting of tex
539539
#pragma message ("WARNING: Getting image from the clipboard might not work without SUPPORT_FILEFORMAT_PNG or SUPPORT_FILEFORMAT_JPG")
540540
#endif
541541

542-
// Not needed because `rtexture.c` will automatically defined STBI_REQUIRED when any SUPPORT_FILEFORMAT_* is defined
542+
// Not needed because 'rtexture.c' will automatically defined STBI_REQUIRED when any SUPPORT_FILEFORMAT_* is defined
543543
// #if !defined(STBI_REQUIRED)
544544
// #pragma message ("WARNING: "STBI_REQUIRED is not defined, that means we can't load images from clipbard"
545545
// #endif

0 commit comments

Comments
 (0)