浏览代码

Merge pull request #4839 from aidonmaster/patch-1

Converting int to char
pull/4843/head
Ray 3 周前
committed by GitHub
父节点
当前提交
bbbdd1f080
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      examples/core/core_2d_camera.c

+ 5
- 1
examples/core/core_2d_camera.c 查看文件

@ -44,7 +44,11 @@ int main(void)
spacing += (int)buildings[i].width; 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 }; Camera2D camera = { 0 };

正在加载...
取消
保存