mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-17 09:04:07 +00:00
JANITORIAL: Fix typos in comments in various files (#10058)
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
*
|
||||
* These are listed in the order they are laid out in
|
||||
* memory, so "FL+FR" means "the front left speaker is
|
||||
* layed out in memory first, then the front right, then
|
||||
* laid out in memory first, then the front right, then
|
||||
* it repeats for the next audio frame".
|
||||
*
|
||||
* 1 channel (mono) layout: FRONT
|
||||
|
||||
@@ -362,7 +362,7 @@ static int MEDIAFOUNDATION_WaitDevice(SDL_CameraDevice *device)
|
||||
}
|
||||
|
||||
// we currently ignore stream_flags format changes, but my _hope_ is that IMFSourceReader is handling this and
|
||||
// will continue to give us the explictly-specified format we requested when opening the device, though, and
|
||||
// will continue to give us the explicitly-specified format we requested when opening the device, though, and
|
||||
// we don't have to manually deal with it.
|
||||
|
||||
if (sample != NULL) {
|
||||
|
||||
@@ -291,7 +291,7 @@ static __u32 get_hid_report_bytes(const __u8 *rpt, size_t len, size_t num_bytes,
|
||||
* Skips all nested Collection, i.e. iterates until the end of current level Collection.
|
||||
*
|
||||
* The return value is non-0 when an end of current Collection is found,
|
||||
* 0 when error is occured (broken Descriptor, end of a Collection is found before its begin,
|
||||
* 0 when error is occurred (broken Descriptor, end of a Collection is found before its begin,
|
||||
* or no Collection is found at all).
|
||||
*/
|
||||
static int hid_iterate_over_collection(const __u8 *report_descriptor, __u32 size, unsigned int *pos, int *data_len, int *key_size)
|
||||
|
||||
@@ -234,7 +234,7 @@ static uint32_t get_hid_report_bytes(const uint8_t *rpt, size_t len, size_t num_
|
||||
* Skips all nested Collection, i.e. iterates until the end of current level Collection.
|
||||
*
|
||||
* The return value is non-0 when an end of current Collection is found,
|
||||
* 0 when error is occured (broken Descriptor, end of a Collection is found before its begin,
|
||||
* 0 when error is occurred (broken Descriptor, end of a Collection is found before its begin,
|
||||
* or no Collection is found at all).
|
||||
*/
|
||||
static int hid_iterate_over_collection(const uint8_t *report_descriptor, uint32_t size, unsigned int *pos, int *data_len, int *key_size)
|
||||
|
||||
@@ -158,7 +158,7 @@ typedef struct
|
||||
// message types within ValveInReport_t or the header itself. Hopefully this should
|
||||
// be super rare and instead you should just add new message payloads to the union,
|
||||
// or just add fields to the end of existing payload structs which is expected to be
|
||||
// safe in all code consuming these as they should just consume/copy upto the prior size
|
||||
// safe in all code consuming these as they should just consume/copy up to the prior size
|
||||
// they were aware of when processing.
|
||||
#define k_ValveInReportMsgVersion 0x01
|
||||
|
||||
|
||||
@@ -4276,7 +4276,7 @@ void* dlmalloc(size_t bytes) {
|
||||
|
||||
void dlfree(void* mem) {
|
||||
/*
|
||||
Consolidate freed chunks with preceeding or succeeding bordering
|
||||
Consolidate freed chunks with preceding or succeeding bordering
|
||||
free chunks, if they exist, and then place in a bin. Intermixed
|
||||
with special cases for top, dv, mmapped chunks, and usage errors.
|
||||
*/
|
||||
@@ -5113,10 +5113,10 @@ History:
|
||||
Wolfram Gloger (Gloger@lrz.uni-muenchen.de).
|
||||
* Use last_remainder in more cases.
|
||||
* Pack bins using idea from colin@nyx10.cs.du.edu
|
||||
* Use ordered bins instead of best-fit threshhold
|
||||
* Use ordered bins instead of best-fit threshold
|
||||
* Eliminate block-local decls to simplify tracing and debugging.
|
||||
* Support another case of realloc via move into top
|
||||
* Fix error occuring when initial sbrk_base not word-aligned.
|
||||
* Fix error occurring when initial sbrk_base not word-aligned.
|
||||
* Rely on page size for units instead of SBRK_UNIT to
|
||||
avoid surprises about sbrk alignment conventions.
|
||||
* Add mallinfo, mallopt. Thanks to Raymond Nijssen
|
||||
|
||||
@@ -3428,7 +3428,7 @@ int SDL_SetWindowModalFor(SDL_Window *modal_window, SDL_Window *parent_window)
|
||||
const int ret = _this->SetWindowModalFor(_this, modal_window, parent_window);
|
||||
|
||||
/* The existing parent might be needed when changing the modal status,
|
||||
* so don't change the heirarchy until after setting the new modal state.
|
||||
* so don't change the hierarchy until after setting the new modal state.
|
||||
*/
|
||||
if (!ret) {
|
||||
SDL_SetWindowParent(modal_window, !ret ? parent_window : NULL);
|
||||
|
||||
Reference in New Issue
Block a user