Fixing typecast warnings generated by visual studio 2019 in examples.
This commit is contained in:
parent
4604271c6a
commit
81a7650e8d
1 changed files with 60 additions and 57 deletions
|
|
@ -140,8 +140,8 @@ int main(void)
|
|||
// Draw the current buffer state proportionate to the screen
|
||||
for (int i = 0; i < screenWidth; i++)
|
||||
{
|
||||
position.x = i;
|
||||
position.y = 250 + 50*data[i*MAX_SAMPLES/screenWidth]/32000;
|
||||
position.x = (float)i;
|
||||
position.y = 250 + 50*data[i*MAX_SAMPLES/screenWidth]/32000.0f;
|
||||
|
||||
DrawPixelV(position, RED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue