SDL errors plus other Qs!
OK, a couple of the errors I'm having are a bit more general, and the SDL forum is dead so I posted it here!
First of all, when my game is running the cursor isn't shwn unless it's moving, this is probably a simple problem but I've looked everywhere and can't find the answere.
The second error is that durng this function:
if (-1 == SDL_FillRect(screen,NULL, _RGB16BIT565(0,0,0))) //clear screen
{
MessageBox(NULL, SDL_GetError(), NULL, NULL);
return(1);
}//end if
I get the error IDirectDrawSurface3::Blt surface was lost, although the function does what it's supposed to do (Clear the screen).
And the last thing, that I'm not real worried about but would be nice to know anyway. The message box pops up in the background because it's a fullscreen game so I have to alt+tab to see it. But I thought the program was supposed to stop until I clicked ok, but instead it just skips the return(1); line and the program keeps running as normal, but gets to the return after I click OK!
Can Anyone give my an idea as to whats happening with any of these?
[edited by - flukus on January 5, 2003 8:57:52 AM]
first: use SDL_MapRGB instead of _RGB16BIT565 macro,maybe that will solve your problem.
second: you can first minimize the window,with SDL_WM_IconifyWindow(i dunno if this function is supported in windows tho)then display the msgbox,and if the user click ok,you quit SDL(SDL_Quit),and exit the program.
second: you can first minimize the window,with SDL_WM_IconifyWindow(i dunno if this function is supported in windows tho)then display the msgbox,and if the user click ok,you quit SDL(SDL_Quit),and exit the program.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement