diff options
Diffstat (limited to 'apps/mandelbrot.c')
-rw-r--r-- | apps/mandelbrot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/mandelbrot.c b/apps/mandelbrot.c index d5b8ae0..677d674 100644 --- a/apps/mandelbrot.c +++ b/apps/mandelbrot.c @@ -56,10 +56,11 @@ int main() { print("[mandelbrot window loaded]\n"); - struct window *win = gui_new_window(WF_DEFAULT); - gui_fill(win, BG_COLOR); + struct window win = { 0 }; + gui_new_window(&win); + gui_fill(&win, BG_COLOR); - draw_mandelbrot(win, 50); + draw_mandelbrot(&win, 50); while (1) { yield(); |