Minor tweaks
This commit is contained in:
parent
598b7f5210
commit
3abe728712
5 changed files with 7 additions and 7 deletions
|
@ -1619,9 +1619,9 @@ int InitPlatform(void)
|
||||||
|
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
// Workaround for NetBSD
|
// Workaround for NetBSD
|
||||||
char* glfwPlatform = "X11";
|
char *glfwPlatform = "X11";
|
||||||
#else
|
#else
|
||||||
char* glfwPlatform = "";
|
char *glfwPlatform = "";
|
||||||
switch (glfwGetPlatform())
|
switch (glfwGetPlatform())
|
||||||
{
|
{
|
||||||
case GLFW_PLATFORM_WIN32: glfwPlatform = "Win32"; break;
|
case GLFW_PLATFORM_WIN32: glfwPlatform = "Win32"; break;
|
||||||
|
|
|
@ -79,7 +79,7 @@ void CloseWindow(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#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
|
#endif
|
||||||
|
|
||||||
#include "../external/RGFW.h"
|
#include "../external/RGFW.h"
|
||||||
|
|
|
@ -1550,7 +1550,7 @@ Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data,
|
||||||
else if ((strcmp(fileType, ".ogg") == 0) || (strcmp(fileType, ".OGG") == 0))
|
else if ((strcmp(fileType, ".ogg") == 0) || (strcmp(fileType, ".OGG") == 0))
|
||||||
{
|
{
|
||||||
// Open ogg audio stream
|
// 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)
|
if (ctxOgg != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4294,7 +4294,7 @@ static Model LoadIQM(const char *fileName)
|
||||||
// In case file can not be read, return an empty model
|
// In case file can not be read, return an empty model
|
||||||
if (fileDataPtr == NULL) return model;
|
if (fileDataPtr == NULL) return model;
|
||||||
|
|
||||||
const char* basePath = GetDirectoryPath(fileName);
|
const char *basePath = GetDirectoryPath(fileName);
|
||||||
|
|
||||||
// Read IQM header
|
// Read IQM header
|
||||||
IQMHeader *iqmHeader = (IQMHeader *)fileDataPtr;
|
IQMHeader *iqmHeader = (IQMHeader *)fileDataPtr;
|
||||||
|
|
|
@ -1572,7 +1572,7 @@ char *TextReplace(const char *text, const char *replace, const char *by)
|
||||||
byLen = TextLength(by);
|
byLen = TextLength(by);
|
||||||
|
|
||||||
// Count the number of replacements needed
|
// Count the number of replacements needed
|
||||||
insertPoint = (char*)text;
|
insertPoint = (char *)text;
|
||||||
for (count = 0; (temp = strstr(insertPoint, replace)); count++) insertPoint = temp + replaceLen;
|
for (count = 0; (temp = strstr(insertPoint, replace)); count++) insertPoint = temp + replaceLen;
|
||||||
|
|
||||||
// Allocate returning string and point temp to it
|
// 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 readBytes = 0; // Data bytes read (line)
|
||||||
int readVars = 0; // Variables filled by sscanf()
|
int readVars = 0; // Variables filled by sscanf()
|
||||||
|
|
||||||
const char *fileText = (const char*)fileData;
|
const char *fileText = (const char *)fileData;
|
||||||
const char *fileTextPtr = fileText;
|
const char *fileTextPtr = fileText;
|
||||||
|
|
||||||
bool fontMalformed = false; // Is the font malformed
|
bool fontMalformed = false; // Is the font malformed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue