casting in fbdev
[winnie] / libwinnie / src / fbdev / mouse.cc
index 8563da8..5805879 100644 (file)
@@ -85,7 +85,7 @@ void destroy_mouse()
 
 bool client_open_mouse(void *smem_start, int offset)
 {
-       mouse = (unsigned char*)smem_start + offset;
+       mouse = (Mouse*)((unsigned char*)smem_start + offset);
        return true;
 }