Skip to content

Commit 8a7ea78

Browse files
committed
Fix type mismatch in area size functions
1 parent dee0736 commit 8a7ea78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iui/src/controls/area.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl Area {
188188
/// If called on a non-scrolling `Area`, this function's behavior is undefined.
189189
pub unsafe fn set_size(&self, _ctx: &UI, width: u64, height: u64) {
190190
// TODO: Check if the area is scrolling?
191-
unsafe { ui_sys::uiAreaSetSize(self.uiArea, width, height) }
191+
unsafe { ui_sys::uiAreaSetSize(self.uiArea, width as i64, height as i64) }
192192
}
193193

194194
/// Queues the entire `Area` to be redrawn. This function returns immediately;

0 commit comments

Comments
 (0)