From 5dc93451d27f351b26151c0dedb1c06d404ea66d Mon Sep 17 00:00:00 2001 From: Hubert Maier Date: Sun, 6 Nov 2022 20:49:37 +0100 Subject: [PATCH] JANITORIAL : Correct some more spelling mistakes (#6489) --- cmake/test/CMakeLists.txt | 2 +- src/audio/qsa/SDL_qsa_audio.c | 2 +- src/hidapi/linux/README.txt | 2 +- src/render/SDL_sysrender.h | 2 +- src/video/cocoa/SDL_cocoamouse.h | 2 +- src/video/wayland/SDL_waylandwindow.c | 2 +- src/video/windows/SDL_windowsmessagebox.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmake/test/CMakeLists.txt b/cmake/test/CMakeLists.txt index 0695e9dfb..388e86c54 100644 --- a/cmake/test/CMakeLists.txt +++ b/cmake/test/CMakeLists.txt @@ -24,7 +24,7 @@ include(FeatureSummary) option(TEST_SHARED "Test linking to shared SDL2 library" ON) add_feature_info("TEST_SHARED" TEST_SHARED "Test linking with shared library") -option(TEST_STATIC "Test linking to static SDL2 libary" ON) +option(TEST_STATIC "Test linking to static SDL2 library" ON) add_feature_info("TEST_STATIC" TEST_STATIC "Test linking with static library") if(TEST_SHARED) diff --git a/src/audio/qsa/SDL_qsa_audio.c b/src/audio/qsa/SDL_qsa_audio.c index 2e6f21d07..7a843f364 100644 --- a/src/audio/qsa/SDL_qsa_audio.c +++ b/src/audio/qsa/SDL_qsa_audio.c @@ -128,7 +128,7 @@ QSA_WaitDevice(_THIS) SDL_SetError("QSA: SDL_IOReady() failed: %s", strerror(errno)); break; case 0: - SDL_SetError("QSA: timeout on buffer waiting occured"); + SDL_SetError("QSA: timeout on buffer waiting occurred"); this->hidden->timeout_on_wait = 1; break; default: diff --git a/src/hidapi/linux/README.txt b/src/hidapi/linux/README.txt index 800669495..c187590c1 100644 --- a/src/hidapi/linux/README.txt +++ b/src/hidapi/linux/README.txt @@ -39,7 +39,7 @@ Bugs (hidraw implementation only): ----------------------------------- On Kernel versions < 2.6.34, if your device uses numbered reports, an extra byte will be returned at the beginning of all reports returned from read() -for hidraw devices. This is worked around in the libary. No action should be +for hidraw devices. This is worked around in the library. No action should be necessary in the client library. On Kernel versions < 2.6.35, reports will only be sent using a Set_Report diff --git a/src/render/SDL_sysrender.h b/src/render/SDL_sysrender.h index dc8be4674..d87b2563e 100644 --- a/src/render/SDL_sysrender.h +++ b/src/render/SDL_sysrender.h @@ -231,7 +231,7 @@ struct SDL_Renderer SDL_DRect clip_rect; SDL_DRect clip_rect_backup; - /* Wether or not the clipping rectangle is used. */ + /* Whether or not the clipping rectangle is used. */ SDL_bool clipping_enabled; SDL_bool clipping_enabled_backup; diff --git a/src/video/cocoa/SDL_cocoamouse.h b/src/video/cocoa/SDL_cocoamouse.h index 44bbe8a30..f6dcdc045 100644 --- a/src/video/cocoa/SDL_cocoamouse.h +++ b/src/video/cocoa/SDL_cocoamouse.h @@ -32,7 +32,7 @@ extern void Cocoa_HandleMouseWarp(CGFloat x, CGFloat y); extern void Cocoa_QuitMouse(_THIS); typedef struct { - /* Wether we've seen a cursor warp since the last move event. */ + /* Whether we've seen a cursor warp since the last move event. */ SDL_bool seenWarp; /* What location our last cursor warp was to. */ CGFloat lastWarpX; diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 3c938bd53..a329ad357 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -916,7 +916,7 @@ decoration_frame_configure(struct libdecor_frame *frame, /* Update the resize capability. Since this will change the capabilities and * commit a new frame state with the last known content dimension, this has - * to be called after the new state has been commited and the new content + * to be called after the new state has been committed and the new content * dimensions were updated. */ Wayland_SetWindowResizable(SDL_GetVideoDevice(), window, diff --git a/src/video/windows/SDL_windowsmessagebox.c b/src/video/windows/SDL_windowsmessagebox.c index f0a3ebe1a..25d40a19a 100644 --- a/src/video/windows/SDL_windowsmessagebox.c +++ b/src/video/windows/SDL_windowsmessagebox.c @@ -893,7 +893,7 @@ WIN_ShowOldMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) } else if (result == IDINVALPTRDLGITEM) { SDL_SetError("Couldn't find dialog control of the default enter-key button"); } else { - SDL_SetError("An unknown error occured"); + SDL_SetError("An unknown error occurred"); } retval = -1; }