* scrollPanel fix
fixed a bug of the scrollbars disappearing
implemented checking of scrollbar side for drawing the little rectangle
* readded (int) cast
If you have a style file with CRLF line endings and specify a font file on a system that expects LF line endings, then the font file will fail to load with an error such as...
WARNING: FILEIO: [./assets/terminal/Mecha.ttf
] Failed to open file
...because it sees the CR as part of the name.
Adding '\r' to the negated scanset for sscanf() fixes the issue.
* Fix for issue #94: infinite loop on space-free sequences in text that are wider than textbox bounds
marked no lastSpacePos as -1.
check for a space-char had to come earlier than check for width overrun.
if no space found in this line but line too wide, wrap sequence and start new line with textWidth of last character.
reset lastSpacePos on every new line.
* GuiTextBoxMulti now will also break when encountering a newline character
Co-authored-by: Ray <raysan5@gmail.com>
marked no lastSpacePos as -1.
check for a space-char had to come earlier than check for width overrun.
if no space found in this line but line too wide, wrap sequence and start new line with textWidth of last character.
reset lastSpacePos on every new line.
Now all controls just use GuiDrawRectangle() that receives border parameters if required, it replaces previous DrawRectangle()/DrawRectangleRec() + DrawRectangleLinesEx() combinations.
It centralizes rectangles drawing into a single function, allowing some further customization in the future if required...
Remove comma after RAYGUI_HEADERS or make install will not install the headers because RAYGUI_HEADERS is not set. ", " is an unreported syntactic error.
Found several limitations:
- Tooltip timming can not be properly set on imgui mode
- Tooltip underlap to controls drawn after current control
Still, a quite interesting feature for further analysis.