add doc comments to open and close_display
@@ -1249,11 +1249,15 @@ pub fn screen_count() -> u32 {
}
/// Open the current display
-pub(crate) fn open_display() {
- unsafe { Fl_open_display() }
+/// # Safety
+/// A correct visual must be set prior to opening the display
+pub unsafe fn open_display() {
+ Fl_open_display()
}
/// Close the current display
-pub(crate) fn close_display() {
- unsafe { Fl_close_display() }
+/// # Safety
+/// The display shouldn't be closed while a window is shown
+pub unsafe fn close_display() {
+ Fl_close_display()
}
\ No newline at end of file
