X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmodern%2Fmain.c;h=ea1080552e88e2b2fd64e530d7c5adecc43259c4;hb=7ef52b31864696747396945b2ca8892d8796f96c;hp=e60329f460b16292f418e250f2dd3eb212eca80a;hpb=f36f642406d972f4a6644dc9a022e7c037a801c1;p=retroray diff --git a/src/modern/main.c b/src/modern/main.c index e60329f..ea10805 100644 --- a/src/modern/main.c +++ b/src/modern/main.c @@ -31,7 +31,6 @@ static void skeyup(int key, int x, int y); static void mouse(int bn, int st, int x, int y); static void motion(int x, int y); static int translate_skey(int key); -static void draw_cursor(int x, int y); #if defined(__unix__) || defined(unix) #include @@ -183,9 +182,6 @@ void app_vsync(int vsync) static void display(void) { app_display(); - - draw_cursor(mouse_x, mouse_y); - app_swap_buffers(); } @@ -262,17 +258,3 @@ static int translate_skey(int key) return -1; } - -static void draw_cursor(int x, int y) -{ - int i; - uint32_t *fbptr = framebuf + y * win_width + x; - - for(i=0; i<3; i++) { - int offs = i + 1; - if(y > offs) fbptr[-win_width * offs] ^= 0xffffff; - if(y < win_height - offs - 1) fbptr[win_width * offs] ^= 0xffffff; - if(x > offs) fbptr[-offs] ^= 0xffffff; - if(x < win_width - offs - 1) fbptr[offs] ^= 0xffffff; - } -}