mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-20 20:49:17 -05:00
Update textures_screen_buffer.c
This commit is contained in:
@ -66,11 +66,9 @@ int main(void)
|
|||||||
// Grow flameRoot
|
// Grow flameRoot
|
||||||
for (int x = 2; x < flameWidth; x++)
|
for (int x = 2; x < flameWidth; x++)
|
||||||
{
|
{
|
||||||
unsigned char flame = flameRootBuffer[x];
|
int flame = (int)flameRootBuffer[x];
|
||||||
if (flame == 255) continue;
|
|
||||||
flame += GetRandomValue(0, 2);
|
flame += GetRandomValue(0, 2);
|
||||||
if (flame > 255) flame = 255;
|
flameRootBuffer[x] = (flameInc > 255)? 255: (unsigned char)flame;
|
||||||
flameRootBuffer[x] = flame;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transfer flameRoot to indexBuffer
|
// Transfer flameRoot to indexBuffer
|
||||||
|
|||||||
Reference in New Issue
Block a user