|
Mouse problem |
horizon981
Member #7,594
August 2006
|
This small program was meant to change the cursor as well as display its position and button status. The cursor changes, but no text is appearing anywhere- just a blank screen. Plese help
|
Kauhiz
Member #4,798
July 2004
|
Tried it, it works just fine for me. There's a bunch of stuff wrong with your code though. --- |
Ceagon Xylas
Member #5,495
February 2005
|
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 648, 480, 0, 0); Quote: You shouldn't be using textprintf anymore. Why not? What should be used instead? |
gnolam
Member #2,030
March 2002
|
horizon981 said: The cursor changes, but no text is appearing anywhere- just a blank screen. Plese help Use makecol() to acquire a proper text color. Ceagon Xylas said: Why not? What should be used instead? void textprintf_ex(BITMAP *bmp, const FONT *f, int x, int y, int color, int bg, const char *fmt, ...); -- |
Kauhiz
Member #4,798
July 2004
|
Seems I misread your question a bit. I thought the mouse wasn't showing up either. Well, the answer is what gnolam said, the text is drawn, but for me it was a dark blue font, so you're not seeing it because of the black background. Trytextprintf_ex(screen, font, 10, 10, makecol(255, 255, 255), -1, "Mouse :(%d,%d,%d)",mouse_x,mouse_y,mouse_z); edit: --- |
|