Explorar el Código

Merge pull request #4839 from aidonmaster/patch-1

Converting int to char
pull/4843/head
Ray hace 11 meses
cometido por GitHub
padre
commit
bbbdd1f080
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      examples/core/core_2d_camera.c

+ 5
- 1
examples/core/core_2d_camera.c Ver fichero

@ -44,7 +44,11 @@ int main(void)
spacing += (int)buildings[i].width;
buildColors[i] = (Color){ GetRandomValue(200, 240), GetRandomValue(200, 240), GetRandomValue(200, 250), 255 };
buildColors[i] = (Color){
(unsigned char)GetRandomValue(200, 240),
(unsigned char)GetRandomValue(200, 240),
(unsigned char)GetRandomValue(200, 250),
255};
}
Camera2D camera = { 0 };

Cargando…
Cancelar
Guardar