X-Git-Url: http://git.mutantstargoat.com?p=winnie;a=blobdiff_plain;f=src%2Fwm.cc;h=b661234302cea8781325a987bc90eda6b5dfccaf;hp=f65c9c260e57cb474a65dcd8573c488ec3ce4556;hb=5449bf8fbca1d2cfbefa0386df7109afb2a5aa34;hpb=094e53b80e5576db6c86bb7dc6141b0cff7fa665 diff --git a/src/wm.cc b/src/wm.cc index f65c9c2..b661234 100644 --- a/src/wm.cc +++ b/src/wm.cc @@ -2,6 +2,8 @@ #include "gfx.h" #include "wm.h" #include "window.h" +#include "mouse.h" +#include "mouse_cursor.h" WindowManager *wm; static WindowManager wminst; @@ -19,6 +21,19 @@ WindowManager::WindowManager() bg_color[0] = 210; bg_color[1] = 106; bg_color[2] = 106; + + mouse_cursor.set_image(mouse_cursor_width, mouse_cursor_height); + unsigned char *pixels = mouse_cursor.get_image(); + + for(int i=0; i