Commit 5dc93451d27f351b26151c0dedb1c06d404ea66d

Hubert Maier 2022-11-06T20:49:37

JANITORIAL : Correct some more spelling mistakes (#6489)

diff --git a/cmake/test/CMakeLists.txt b/cmake/test/CMakeLists.txt
index 0695e9d..388e86c 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 2e6f21d..7a843f3 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 8006694..c187590 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 dc8be46..d87b256 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 44bbe8a..f6dcdc0 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 3c938bd..a329ad3 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 f0a3ebe..25d40a1 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;
     }