Skip to content

Commit f361034

Browse files
bostickslouken
authored andcommitted
fix typos
1 parent 2ed1c35 commit f361034

File tree

23 files changed

+34
-34
lines changed

23 files changed

+34
-34
lines changed

src/audio/SDL_wave.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ static bool IMA_ADPCM_Init(WaveFile *file, size_t datalength)
813813

814814
if (format->formattag == EXTENSIBLE_CODE) {
815815
/* There's no specification for this, but it's basically the same
816-
* format because the extensible header has wSampePerBlocks too.
816+
* format because the extensible header has wSamplePerBlocks too.
817817
*/
818818
} else {
819819
// The Standards Update says there 'should' be 2 bytes for wSamplesPerBlock.
@@ -1852,7 +1852,7 @@ static bool WaveLoad(SDL_IOStream *src, WaveFile *file, SDL_AudioSpec *spec, Uin
18521852

18531853
/* Step through all chunks and save information on the fmt, data, and fact
18541854
* chunks. Ignore the chunks we don't know as per specification. This
1855-
* currently also ignores cue, list, and slnt chunks.
1855+
* currently also ignores cue, list, and inst chunks.
18561856
*/
18571857
while ((Uint64)RIFFend > (Uint64)chunk->position + chunk->length + (chunk->length & 1)) {
18581858
// Abort after too many chunks or else corrupt files may waste time.

src/audio/alsa/SDL_alsa_audio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ static void swizzle_map_compute_alsa_subscan(const struct ALSA_pcm_cfg_ctx *ctx,
652652
}
653653
}
654654

655-
// XXX: this must stay playback/recording symetric.
655+
// XXX: this must stay playback/recording symmetric.
656656
static void swizzle_map_compute(const struct ALSA_pcm_cfg_ctx *ctx, int *swizzle_map, bool *needs_swizzle)
657657
{
658658
*needs_swizzle = false;
@@ -1069,7 +1069,7 @@ static bool ALSA_pcm_cfg_hw(struct ALSA_pcm_cfg_ctx *ctx)
10691069
}
10701070

10711071
// Here, status == CHANS_N_NOT_CONFIGURED
1072-
return SDL_SetError("ALSA: Coudn't configure targetting any SDL supported channel number");
1072+
return SDL_SetError("ALSA: Couldn't configure targeting any SDL supported channel number");
10731073
}
10741074
#undef CHANS_N_SCAN_MODE__EQUAL_OR_ABOVE_REQUESTED_CHANS_N
10751075
#undef CHANS_N_SCAN_MODE__BELOW_REQUESTED_CHANS_N
@@ -1150,7 +1150,7 @@ static bool ALSA_OpenDevice(SDL_AudioDevice *device)
11501150
goto err_close_pcm;
11511151
}
11521152

1153-
// from here, we get only the alsa chmap queries in cfg_ctx to explicitely clean, hwparams is
1153+
// from here, we get only the alsa chmap queries in cfg_ctx to explicitly clean, hwparams is
11541154
// uninstalled upon pcm closing
11551155

11561156
// This is useful for debugging

src/audio/qnx/SDL_qsa_audio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ static void QSA_InitAudioParams(snd_pcm_channel_params_t * cpars)
8989
static bool QSA_WaitDevice(SDL_AudioDevice *device)
9090
{
9191
// Setup timeout for playing one fragment equal to 2 seconds
92-
// If timeout occurred than something wrong with hardware or driver
93-
// For example, Vortex 8820 audio driver stucks on second DAC because
92+
// If timeout occurred then something wrong with hardware or driver
93+
// For example, Vortex 8820 audio driver sticks on second DAC because
9494
// it doesn't exist !
9595
const int result = SDL_IOReady(device->hidden->audio_fd,
9696
device->recording ? SDL_IOR_READ : SDL_IOR_WRITE,

src/camera/android/SDL_camera_android.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ static void onCameraAvailable(void *context, const char *cameraId)
729729
static void onCameraUnavailable(void *context, const char *cameraId)
730730
{
731731
#if DEBUG_CAMERA
732-
SDL_Log("CAMERA: CB onCameraUnvailable('%s')", cameraId);
732+
SDL_Log("CAMERA: CB onCameraUnavailable('%s')", cameraId);
733733
#endif
734734

735735
SDL_assert(cameraId != NULL);

src/core/android/SDL_android.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ SDL_DisplayOrientation Android_JNI_GetDisplayCurrentOrientation(void)
16441644
return displayCurrentOrientation;
16451645
}
16461646

1647-
void Android_JNI_MinizeWindow(void)
1647+
void Android_JNI_MinimizeWindow(void)
16481648
{
16491649
JNIEnv *env = Android_JNI_GetEnv();
16501650
(*env)->CallStaticVoidMethod(env, mActivityClass, midMinimizeWindow);

src/core/android/SDL_android.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void Android_SetAllowRecreateActivity(bool enabled);
6161
extern void Android_JNI_SetActivityTitle(const char *title);
6262
extern void Android_JNI_SetWindowStyle(bool fullscreen);
6363
extern void Android_JNI_SetOrientation(int w, int h, int resizable, const char *hint);
64-
extern void Android_JNI_MinizeWindow(void);
64+
extern void Android_JNI_MinimizeWindow(void);
6565
extern bool Android_JNI_ShouldMinimizeOnFocusLoss(void);
6666

6767
extern bool Android_JNI_GetAccelerometerValues(float values[3]);

src/dynapi/gendynapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def get_header_list() -> list[Path]:
451451

452452
return ret
453453

454-
# Write the new API in files: _procs.h _overrivides.h and .sym
454+
# Write the new API in files: _procs.h _overrides.h and .sym
455455
def add_dyn_api(proc: SdlProcedure) -> None:
456456
decl_args: list[str] = []
457457
call_args = []

src/events/SDL_windowevents.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void SDL_RemoveWindowEventWatch(SDL_WindowEventWatchPriority priority, SDL_Event
5656
SDL_RemoveEventWatchList(&SDL_window_event_watchers[priority], filter, userdata);
5757
}
5858

59-
static bool SDLCALL RemoveSupercededWindowEvents(void *userdata, SDL_Event *event)
59+
static bool SDLCALL RemoveSupersededWindowEvents(void *userdata, SDL_Event *event)
6060
{
6161
SDL_Event *new_event = (SDL_Event *)userdata;
6262

@@ -232,7 +232,7 @@ bool SDL_SendWindowEvent(SDL_Window *window, SDL_EventType windowevent, int data
232232
windowevent == SDL_EVENT_WINDOW_SAFE_AREA_CHANGED ||
233233
windowevent == SDL_EVENT_WINDOW_EXPOSED ||
234234
windowevent == SDL_EVENT_WINDOW_OCCLUDED) {
235-
SDL_FilterEvents(RemoveSupercededWindowEvents, &event);
235+
SDL_FilterEvents(RemoveSupersededWindowEvents, &event);
236236
}
237237
posted = SDL_PushEvent(&event);
238238
}

src/hidapi/ios/hid.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ - (void)centralManagerDidUpdateState:(CBCentralManager *)central
403403
NSLog( @"CoreBluetooth BLE hardware is powered on and ready" );
404404

405405
// at startup, if we have no already attached peripherals, do a 20s scan for new unpaired devices,
406-
// otherwise callers should occaisionally do additional scans. we don't want to continuously be
406+
// otherwise callers should occasionally do additional scans. we don't want to continuously be
407407
// scanning because it drains battery, causes other nearby people to have a hard time pairing their
408408
// Steam Controllers, and may also trigger firmware weirdness when a device attempts to start
409409
// the pairing sequence multiple times concurrently
@@ -750,7 +750,7 @@ - (void)peripheral:(CBPeripheral *)peripheral didWriteValueForCharacteristic:(CB
750750

751751
- (void)peripheral:(CBPeripheral *)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
752752
{
753-
NSLog( @"didUpdateNotifcationStateForCharacteristic %@ (%@)", characteristic, error );
753+
NSLog( @"didUpdateNotificationStateForCharacteristic %@ (%@)", characteristic, error );
754754
}
755755

756756
@end

src/hidapi/linux/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static void register_error_str(wchar_t **error_str, const char *msg)
147147
#endif
148148
}
149149

150-
/* Semilar to register_error_str, but allows passing a format string with va_list args into this function. */
150+
/* Similar to register_error_str, but allows passing a format string with va_list args into this function. */
151151
static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
152152
{
153153
char msg[256];

0 commit comments

Comments
 (0)