Use the raylib allocator for fonts.

This commit is contained in:
Kapendev 2025-01-11 01:29:29 +02:00
parent c729c6e0f5
commit 111834f768
3 changed files with 12 additions and 15 deletions

View file

@ -1,4 +1,6 @@
/// This example shows how to place UI items relative to each other.
/// It uses a technique called RectCut.
/// Learn more about RectCut here: https://halt.software/p/rectcut-for-dead-simple-ui-layouts
import parin;
@ -15,7 +17,7 @@ bool update(float dt) {
prepareUi();
setUiFocus(0);
// Create an area for arranging UI items.
auto area = Rect(Vec2(8), resolution - Vec2(8));
auto area = Rect(Vec2(8), resolution);
auto group = Rect();
// Group 1.
group = area.subTop(groupHeight);