fix paint example on non-macos systems
@@ -14,6 +14,13 @@ fn main() {
wind.show();
let offs = Offscreen::new(790, 590).unwrap();
+ #[cfg(not(target_os = "macos"))]
+ {
+ offs.begin();
+ set_draw_color(Color::White);
+ draw_rectf(0, 0, 790, 590);
+ offs.end();
+ }
let offs = Rc::from(RefCell::from(offs));
let offs_rc = offs.clone();
