From 04d2a7df47210f7ac4b9a44ade49af3d92375ee0 Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 22 Feb 2024 01:10:22 +0200 Subject: GuiGetFont fix. --- examples/resources/lib/raygui.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/resources/lib/raygui.lua') diff --git a/examples/resources/lib/raygui.lua b/examples/resources/lib/raygui.lua index 63bbf2f..cd02c78 100644 --- a/examples/resources/lib/raygui.lua +++ b/examples/resources/lib/raygui.lua @@ -1733,7 +1733,7 @@ function Raygui:new() object.textEdit = false object.defaultTexture = RL.GetTextureDefault() object.defaultRect = Rect:new( 0, 0, 1, 1 ) -- For texture. - object.defaultFont = RL.GetFontDefault() + object.defaultFont = RL.GuiGetFont() object.mouseOffset = Vec2:new() object.view = Rect:new() -- Active if larger than 0. Then only controls in view will be updated and drawn. object.tooltip = { @@ -1788,7 +1788,7 @@ function Raygui:update() if control.tooltip ~= nil then self.tooltip.focused = i - + if self.tooltip.timer < self.tooltip.delay then self.tooltip.timer = self.tooltip.timer + RL.GetFrameTime() else @@ -1866,7 +1866,7 @@ function Raygui:drawTooltip() view.width = screenSize.x view.height = screenSize.y end - + RL.GuiDummyRec( tooltipRect:clampInside( view ), self.tooltip.text ) end -- cgit v1.2.3