Jacek Kurzyca wrote:
I've added getch() after GrMouseGetEvent and when I moved mouse (not in gdb) then program crashes, getch() isn't issued and on console I receive a message:
svgalib 1.4.3 svgalib: Failed to initialize maouse. rivafb_open START
rivafb_release END
I discover now this message is displayed before I change graphics to 1024x768x256c. I've wrote test code:
GrSetMode(...); getch(); // mouse init function is far away after this code
And if I click Ctrl-C while program's waiting for a key, program exits and above message is visible on the screen (text mode).
Jacek