hi,all
i’m a newbie of SDL.recently i wrote some C codes in debian sarge in console mode . my kernel version is 2.6 and support framebuffer.
when i used SDL_Init(SDL_INIT_VIDEO)to initialize the SDL,my console resolution changed to 320x200 and i cannot use SDL_SetVideoMode() to change the resolution to 640x480 or any other resolution~~~~why do this happen???i need some suggestions~thanks a lot!---------------------------------
DO YOU YAHOO!?
???2G???pop3???
when i used SDL_Init(SDL_INIT_VIDEO)to initialize the SDL,my console resolution changed to320x200 and i cannot use SDL_SetVideoMode() to >change the resolution to 640x480 or any other resolution~why do this happen???i need some suggestions~thanks a lot!
Hmmm, that’s strange, calling SDL_Init() shouldn’t set any video mode, in any resolution… could we see some code?
Koshmaar
Running SDL applications (or other graphical applacations for that
matter) on a VT is usually not a great idea. However, chances are that
you did not call SDL_Quit() at your applications termination. Try
adding atexit(SDL_Quit) right after you initialize SDL, also add
SDL_Quit() right before you “return()” control to your OS and see what
happens.
If you would like to learn more about SDL_Quit visit:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fQuit
Good luck,–
Juan D. Espinoza
i'm a newbie of SDL.recently i wrote some C codes in debian sarge in
console mode . my kernel version is 2.6 and support framebuffer.
when i used SDL_Init(SDL_INIT_VIDEO)to initialize the SDL,my console
resolution changed to 320x200 and i cannot use SDL_SetVideoMode() to
change the resolution to 640x480 or any other resolution~~~~why do this
happen???i need some suggestions~thanks a lot!
What kernel driver and hardware are you using for framebuffer support?
–ryan.