Skip to content

Commit 9b419fe

Browse files
author
Tim Diekmann
authored
Update documentation for border_size
1 parent 0a668e7 commit 9b419fe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sdl2/video.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1163,10 +1163,7 @@ impl Window {
11631163
/// Use this function to get the size of a window's borders (decorations) around the client area.
11641164
///
11651165
/// # Remarks
1166-
/// This function is only supported on X11, otherwise (0, 0, 0, 0) is returned.
1167-
///
1168-
/// #Notes
1169-
/// If this function fails, (0, 0, 0, 0) will be returned
1166+
/// This function is only supported on X11, otherwise an error is returned.
11701167
pub fn border_size(&self) -> Result<(u16, u16, u16, u16), String> {
11711168
let mut top: c_int = 0;
11721169
let mut left: c_int = 0;

0 commit comments

Comments
 (0)