mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 11:28:17 +00:00
Some tweaks
This commit is contained in:
@@ -148,7 +148,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
# Emscripten required variables
|
# Emscripten required variables
|
||||||
EMSDK_PATH = D:/emsdk
|
EMSDK_PATH = C:/emsdk
|
||||||
EMSCRIPTEN_VERSION = 1.38.20
|
EMSCRIPTEN_VERSION = 1.38.20
|
||||||
CLANG_VERSION = e1.38.20_64bit
|
CLANG_VERSION = e1.38.20_64bit
|
||||||
PYTHON_VERSION = 2.7.13.1_64bit\python-2.7.13.amd64
|
PYTHON_VERSION = 2.7.13.1_64bit\python-2.7.13.amd64
|
||||||
|
@@ -1436,8 +1436,6 @@ Color GetColor(int hexValue)
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Returns a random value between min and max (both included)
|
// Returns a random value between min and max (both included)
|
||||||
int GetRandomValue(int min, int max)
|
int GetRandomValue(int min, int max)
|
||||||
{
|
{
|
||||||
@@ -1448,7 +1446,7 @@ int GetRandomValue(int min, int max)
|
|||||||
min = tmp;
|
min = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (rand()%(abs(max-min)+1) + min);
|
return (rand()%(abs(max - min) + 1) + min);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Color fade-in or fade-out, alpha goes from 0.0f to 1.0f
|
// Color fade-in or fade-out, alpha goes from 0.0f to 1.0f
|
||||||
|
@@ -1371,7 +1371,7 @@ void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((rBpp+gBpp+bBpp+aBpp) > 16)
|
if ((rBpp + gBpp + bBpp + aBpp) > 16)
|
||||||
{
|
{
|
||||||
TraceLog(LOG_WARNING, "Unsupported dithering bpps (%ibpp), only 16bpp or lower modes supported", (rBpp+gBpp+bBpp+aBpp));
|
TraceLog(LOG_WARNING, "Unsupported dithering bpps (%ibpp), only 16bpp or lower modes supported", (rBpp+gBpp+bBpp+aBpp));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user