[SDL] sdl only support fullscreen on embedded platform?

=?big5?B?p2Ygt+fCRQ==?= ruihong0324 at hotmail.com
Wed Feb 28 18:43:00 PST 2007




>From: "Ryan C. Gordon" <icculus at icculus.org>
>Reply-To: "A list for developers using the SDL library. (includes  
SDL-announce)" <sdl at lists.libsdl.org>
>To: "A list for developers using the SDL library. (includes SDL-announce)" 
<sdl at lists.libsdl.org>
>Subject: Re: [SDL] sdl only support fullscreen on embedded platform?
>Date: Wed, 28 Feb 2007 15:32:50 -0500
>
>
> > I cross compile this application and run it on a 640x480 LCD. It works
> > well with fullscreen scale. Then I wanted to test the non-fullscreen
> > mode to see if sdl application can work well with framebuffer. A
> > change was made to the video set section like:
> > (screen=SDL_SetVideoMode(320,240,video_bpp,videoflags)
> > The screen turns black as long as the changed application runs on 
board.
>
>I assume this is Linux, using the fbcon driver.
>
>Always use fullscreen on an embedded device that doesn't have a window
>manager...if you set a 320x240 fullscreen mode on hardware that only
>does 640x480, SDL will make a 320x240 window in the center of the
>640x480 display, and put a black border around it.
>
>Arguably, the fbcon target should just return NULL from
>SDL_SetVideoMode() if you don't request SDL_FULLSCREEN or just force it
>to fullscreen. I'll have to check that.


I have the same problem.
If I use SDL to play video, SDL will put a black border around the LCD.
Then I can not control the display of video.
Have any method to solve the problem?
Thanks in advance and apologize to my poor english.

_________________________________________________________________
¶W¤j 2GB «H½c®e¶q Windows Live Mail ·mÂAª©¡G¥þ·s¬É­±¨Ï¥Î§ó¤è«K 
http://ideas.live.com/programpage.aspx?versionid=5d21c51a-b161-4314-9b0e-4911fb2b2e6d 




More information about the SDL mailing list