We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2be94b commit c7227f6Copy full SHA for c7227f6
raylib/src/rgui/safe.rs
@@ -632,13 +632,12 @@ pub trait RaylibDrawGui {
632
&mut self,
633
bounds: impl Into<ffi::Rectangle>,
634
text: &str,
635
- color: impl Into<ffi::Color>,
636
- ) -> Color {
637
- let mut out = color.into();
+ color: &mut Color,
+ ) -> i32 {
638
let c_text = CString::new(text).unwrap();
639
640
- let _result = unsafe { ffi::GuiColorPicker(bounds.into(), c_text.as_ptr(), &mut out) };
641
- return out.into();
+ let result = unsafe { ffi::GuiColorPicker(bounds.into(), c_text.as_ptr(), &mut *color) };
+ return result;
642
}
643
// Get text with icon id prepended
644
// NOTE: Useful to add icons by name id (enum) instead of
0 commit comments