raygui: Revert property parameters back to i32s (#131)

This commit is contained in:
Not-Nik 2024-10-02 22:19:14 +02:00
parent a087398387
commit 855ab9cd70
Failed to generate hash of commit
3 changed files with 8 additions and 8 deletions

View file

@ -513,13 +513,13 @@ pub fn guiGetFont() Font {
}
/// Set one style property
pub fn guiSetStyle(control: GuiState, property: GuiControlProperty, value: i32) void {
cdef.GuiSetStyle(control, property, @as(c_int, value));
pub fn guiSetStyle(control: GuiControl, property: i32, value: i32) void {
cdef.GuiSetStyle(control, @as(c_int, property), @as(c_int, value));
}
/// Get one style property
pub fn guiGetStyle(control: GuiState, property: GuiControlProperty) i32 {
return @as(i32, cdef.GuiGetStyle(control, property));
pub fn guiGetStyle(control: GuiControl, property: i32) i32 {
return @as(i32, cdef.GuiGetStyle(control, @as(c_int, property)));
}
/// Load style file over global style variable (.rgs)