mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-18 04:59:10 -04:00
Update typos/grammar (#5759)
This commit is contained in:
14
src/rcore.c
14
src/rcore.c
@ -307,7 +307,7 @@ typedef struct CoreData {
|
||||
Size screen; // Screen current width and height
|
||||
Point position; // Window current position
|
||||
Size previousScreen; // Screen previous width and height (required on fullscreen/borderless-windowed toggle)
|
||||
Point previousPosition; // Window previous position (required on fullscreeen/borderless-windowed toggle)
|
||||
Point previousPosition; // Window previous position (required on fullscreen/borderless-windowed toggle)
|
||||
Size render; // Screen framebuffer width and height
|
||||
Point renderOffset; // Screen framebuffer render offset (Not required anymore?)
|
||||
Size currentFbo; // Current framebuffer render width and height (depends on active render texture)
|
||||
@ -329,7 +329,7 @@ typedef struct CoreData {
|
||||
char currentKeyState[MAX_KEYBOARD_KEYS]; // Registers current frame key state
|
||||
char previousKeyState[MAX_KEYBOARD_KEYS]; // Registers previous frame key state
|
||||
|
||||
// NOTE: Since key press logic involves comparing previous vs currrent key state,
|
||||
// NOTE: Since key press logic involves comparing previous vs current key state,
|
||||
// key repeats needs to be handled specially
|
||||
char keyRepeatInFrame[MAX_KEYBOARD_KEYS]; // Registers key repeats for current frame
|
||||
|
||||
@ -714,7 +714,7 @@ void InitWindow(int width, int height, const char *title)
|
||||
Rectangle rec = GetFontDefault().recs[95];
|
||||
if (FLAG_IS_SET(CORE.Window.flags, FLAG_MSAA_4X_HINT))
|
||||
{
|
||||
// NOTE: Try to maxime rec padding to avoid pixel bleeding on MSAA filtering
|
||||
// NOTE: Try to maximize rec padding to avoid pixel bleeding on MSAA filtering
|
||||
SetShapesTexture(GetFontDefault().texture, (Rectangle){ rec.x + 2, rec.y + 2, 1, 1 });
|
||||
}
|
||||
else
|
||||
@ -2514,9 +2514,9 @@ const char *GetFileNameWithoutExt(const char *filePath)
|
||||
if (filePath != NULL)
|
||||
{
|
||||
strncpy(fileName, GetFileName(filePath), MAX_FILENAME_LENGTH - 1); // Get filename.ext without path
|
||||
int fileNameLenght = (int)strlen(fileName); // Get size in bytes
|
||||
int fileNameLength = (int)strlen(fileName); // Get size in bytes
|
||||
|
||||
for (int i = fileNameLenght; i > 0; i--) // Reverse search '.'
|
||||
for (int i = fileNameLength; i > 0; i--) // Reverse search '.'
|
||||
{
|
||||
if (fileName[i] == '.')
|
||||
{
|
||||
@ -3039,7 +3039,7 @@ unsigned char *DecompressData(const unsigned char *compData, int compDataSize, i
|
||||
char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize)
|
||||
{
|
||||
// Base64 conversion table from RFC 4648 [0..63]
|
||||
// NOTE: They represent 64 values (6 bits), to encode 3 bytes of data into 4 "sixtets" (6bit characters)
|
||||
// NOTE: They represent 64 values (6 bits), to encode 3 bytes of data into 4 "sextets" (6bit characters)
|
||||
static const char base64EncodeTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
// Compute expected size and padding
|
||||
@ -3126,7 +3126,7 @@ unsigned char *DecodeDataBase64(const char *text, int *outputSize)
|
||||
int outputCount = 0;
|
||||
for (int i = 0; i < dataSize;)
|
||||
{
|
||||
// Every 4 sixtets must generate 3 octets
|
||||
// Every 4 sextets must generate 3 octets
|
||||
if ((i + 2) >= dataSize)
|
||||
{
|
||||
TRACELOG(LOG_WARNING, "BASE64: Decoding error: Input data size is not valid");
|
||||
|
||||
Reference in New Issue
Block a user