mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-21 01:01:50 +00:00
[examples] Fix examples to work in MSVC (#5267)
* Fix warnings in many examples Add examples to MSVC solution correctly * fix CI error --------- Co-authored-by: Ray <raysan5@gmail.com>
This commit is contained in:
@@ -252,7 +252,11 @@ int main()
|
||||
// Draw spheres to show the lights positions
|
||||
for (int i = 0; i < MAX_LIGHTS; i++)
|
||||
{
|
||||
Color lightColor = (Color){ lights[i].color[0]*255, lights[i].color[1]*255, lights[i].color[2]*255, lights[i].color[3]*255 };
|
||||
Color lightColor = (Color){
|
||||
(unsigned char)(lights[i].color[0]*255),
|
||||
(unsigned char)(lights[i].color[1] * 255),
|
||||
(unsigned char)(lights[i].color[2] * 255),
|
||||
(unsigned char)(lights[i].color[3] * 255) };
|
||||
|
||||
if (lights[i].enabled) DrawSphereEx(lights[i].position, 0.2f, 8, 8, lightColor);
|
||||
else DrawSphereWires(lights[i].position, 0.2f, 8, 8, ColorAlpha(lightColor, 0.3f));
|
||||
|
Reference in New Issue
Block a user