![]() |
|
mouse won't appear |
vlad417
Member #8,720
June 2007
|
so the mouse pointer will not appear, i dont know how to get it to show up inside the window. the program works just fine, i just want the mouse to appear (if possible could i get a crosshair mouse?) IDE:Code::Blocks Compiler: GNU GPP
|
Kris Asick
Member #1,424
July 2001
|
You have to call show_mouse() after you set the video mode, not before. This is because at the moment you currently call show_mouse() the screen pointer is NULL. --- Kris Asick (Gemini) --- Kris Asick (Gemini) |
Rampage
Member #3,035
December 2002
![]() |
[edit] What he said. Besides, you must hide the mouse pointer before doing any drawing. Use scare_mouse and unscare_mouse() to achieve this: install_mouse(); set_color_depth(32); set_gfx_mode(GFX_AUTODETECT_WINDOWED,800,640,0,0); clear_to_color(screen,makecol(255,255,255)); show_mouse(screen); do{ scare_mouse(); if(mouse_b & 1){solidDraw();} unscare_mouse(); }while(!key[KEY_ESC]); allegro_exit();
-R |
vlad417
Member #8,720
June 2007
|
thx guys |
|