Skip to content

Commit f79e100

Browse files
committed
fix builds on macos and win msvc
1 parent 447b918 commit f79e100

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl FromFltkWindow for Webview {
3434
debug as i32,
3535
&mut win.raw_handle() as *mut *mut raw::c_void as *mut raw::c_void,
3636
);
37-
win.draw(move |w| wv::webview_set_size(inner, w.w(), w.h(), 0));
37+
win.draw(move |w| { wv::webview_set_size(inner, w.w(), w.h(), 0); });
3838
let mut topwin =
3939
window::Window::from_widget_ptr(win.top_window().unwrap().as_widget_ptr());
4040
// SetFocus(topwin.raw_handle() as _);
@@ -66,7 +66,7 @@ impl FromFltkWindow for Webview {
6666
let handle = win.raw_handle();
6767
inner = wv::webview_create(debug as i32, handle as _);
6868
make_delegate(wv::webview_get_window(inner) as _, handle as _, 1);
69-
win.draw(move |w| wv::webview_set_size(inner, w.w(), w.h(), 0));
69+
win.draw(move |w| { wv::webview_set_size(inner, w.w(), w.h(), 0); });
7070
let mut topwin =
7171
window::Window::from_widget_ptr(win.top_window().unwrap().as_widget_ptr());
7272
let inner = inner.clone();

0 commit comments

Comments
 (0)