* 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.
- GetTextBounds(), adapted to new TEXT_PADDING property, it probably still requires some work...
- GuiDropdownBox(), reviewed and corrected some issues on item selection.
- GuiLoadStyle(), adapted binary file loading code
- Reviewed some default style properties