| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
When file extension is longer or equal length compared to buffer holding lowercased string, strncpy does not null terminate the string.
Increased buffer size by 1 to ensure it will always be null-terminated, so that following strcmp does not read out of buffer bounds.
|
|
This truncation causes text that spans the zero coord boundary to round differently left or zero vs. right of zero, in turn causing letters to appear squished together. If you actually need the position to be an integer, you should instead `floorf()` the float, rather than doing an integer truncation, but I don't see any reason to convert it to an integer in the first place. Everything else in the equation is a float.
|
|
|
|
|
|
|
|
|
|
GetMusicTimePlayed() was calculated using buffered frames, not played frames.
For example: calling LoadMusicStream->UpdateMusicStream->GetMusicTimePlayed would return non-zero value, even though no music was playing.
|
|
|
|
|
|
Moved to own repo: https://github.com/raylib-extras/rmem
|
|
|
|
|
|
Tested with latest emscripten 3.1.18
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This PR fixes a bug when music.looping is set to false but the music continues looping.
Also using proper functions to seek to start of an audio file.
Removed old comment.
|
|
ISSUE: Front buffer and backbuffer have different clear colors, if no `ClearBackground()` is called by user, there is screen flickering on buffers swap.
It's up to the user to call `ClearBackground()` if desired
|
|
|
|
|
|
|
|
* WAVs looping fix. But broke other formats looping
* Fix audio looping issue
* Follow raylib formatting
* Cast void* to char* to make MSVC compiler happy
Co-authored-by: Ray <[email protected]>
|
|
|
|
Just reviewed font atlas size estimation, now it considers `fontSize` instead of `chars[i].image.height`, increasing considerably the atlas size estimation.
|
|
Co-authored-by: Nikolai Krasheninnikov <[email protected]>
|
|
Reviewed some camera functionality:
- Reviewed camera swinging (up-down movement)
- Reviewed camera tilting (left-right movement)
- Make movement independent of frame-rate
- removed unneeded variables
NOTE: Camera rotation has some speed issues on first person when fixed 60 fps are used: it moves too fast. Independent framerate movement is not properly implemented.
|
|
|
|
Dimensions of Rectangle should be casted to int before multiplication,
otherwise there is a risk for underallocation/overallocation of memory.
|
|
Height of the rectangle can be float, which
may lead to doing extra iteration of loop and
writing out of bounds.
|
|
|
|
Co-authored-by: kirigiri hitomi <[email protected]>
|
|
|
|
|
|
|
|
Co-authored-by: Timofffee <[email protected]>
|
|
* Fix raymath warning with floor to floorf
* signed unsigned missmatches
|
|
|
|
|
|
Moved to raudio library repo: https://github.com/raysan5/raudio
|
|
|
|
Trying to implement proper looping, independently of frame rate.
|