summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2024-07-08 22:54:19 +0200
committerRay <[email protected]>2024-07-08 22:54:19 +0200
commit3abe728712fb10e215ffcf97a1b06178895692d3 (patch)
tree45d81e5821eaa32b058b7ca32c165b87469f55d6 /src
parent598b7f52104a4dd9246ffe01cffcdc0b376cb45c (diff)
downloadraylib-3abe728712fb10e215ffcf97a1b06178895692d3.tar.gz
raylib-3abe728712fb10e215ffcf97a1b06178895692d3.zip
Minor tweaks
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_desktop_glfw.c4
-rw-r--r--src/platforms/rcore_desktop_rgfw.c2
-rw-r--r--src/raudio.c2
-rw-r--r--src/rmodels.c2
-rw-r--r--src/rtext.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c
index 67cf9def..42c64402 100644
--- a/src/platforms/rcore_desktop_glfw.c
+++ b/src/platforms/rcore_desktop_glfw.c
@@ -1619,9 +1619,9 @@ int InitPlatform(void)
#if defined(__NetBSD__)
// Workaround for NetBSD
- char* glfwPlatform = "X11";
+ char *glfwPlatform = "X11";
#else
- char* glfwPlatform = "";
+ char *glfwPlatform = "";
switch (glfwGetPlatform())
{
case GLFW_PLATFORM_WIN32: glfwPlatform = "Win32"; break;
diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c
index d53237fc..7dfe1f51 100644
--- a/src/platforms/rcore_desktop_rgfw.c
+++ b/src/platforms/rcore_desktop_rgfw.c
@@ -79,7 +79,7 @@ void CloseWindow(void);
#endif
#ifdef _MSC_VER
-__declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int CodePage, unsigned long dwFlags, const char* lpMultiByteStr, int cbMultiByte, wchar_t* lpWideCharStr, int cchWideChar);
+__declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int CodePage, unsigned long dwFlags, const char *lpMultiByteStr, int cbMultiByte, wchar_t *lpWideCharStr, int cchWideChar);
#endif
#include "../external/RGFW.h"
diff --git a/src/raudio.c b/src/raudio.c
index e3371297..21d1adae 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -1550,7 +1550,7 @@ Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data,
else if ((strcmp(fileType, ".ogg") == 0) || (strcmp(fileType, ".OGG") == 0))
{
// Open ogg audio stream
- stb_vorbis* ctxOgg = stb_vorbis_open_memory((const unsigned char*)data, dataSize, NULL, NULL);
+ stb_vorbis* ctxOgg = stb_vorbis_open_memory((const unsigned char *)data, dataSize, NULL, NULL);
if (ctxOgg != NULL)
{
diff --git a/src/rmodels.c b/src/rmodels.c
index c6acff5d..50328fca 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -4294,7 +4294,7 @@ static Model LoadIQM(const char *fileName)
// In case file can not be read, return an empty model
if (fileDataPtr == NULL) return model;
- const char* basePath = GetDirectoryPath(fileName);
+ const char *basePath = GetDirectoryPath(fileName);
// Read IQM header
IQMHeader *iqmHeader = (IQMHeader *)fileDataPtr;
diff --git a/src/rtext.c b/src/rtext.c
index 8daf3a7b..755b15ef 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -1572,7 +1572,7 @@ char *TextReplace(const char *text, const char *replace, const char *by)
byLen = TextLength(by);
// Count the number of replacements needed
- insertPoint = (char*)text;
+ insertPoint = (char *)text;
for (count = 0; (temp = strstr(insertPoint, replace)); count++) insertPoint = temp + replaceLen;
// Allocate returning string and point temp to it
@@ -2339,7 +2339,7 @@ static GlyphInfo *LoadFontDataBDF(const unsigned char *fileData, int dataSize, i
int readBytes = 0; // Data bytes read (line)
int readVars = 0; // Variables filled by sscanf()
- const char *fileText = (const char*)fileData;
+ const char *fileText = (const char *)fileData;
const char *fileTextPtr = fileText;
bool fontMalformed = false; // Is the font malformed