[SDL] Trying to paint fullscreen
subscript at free.fr
Sat Jan 27 07:54:03 PST 2001
Hi again Roger,
On Sat, 27 Jan 2001, you wrote:
> On Fri, 26 Jan 2001, Rouk wrote:
> > You just need to have the corresponding entries in your XF86Config.
> > For isntance, mine are
> > Subsection "Display"
> > Depth 16
> > Modes "1280x1024" "1024x768" "800x600" "640x480"
> > ViewPort 0 0
> > EndSubsection
> Yes, but my card only have 1MB, so, high resolution mode 1024x768 can work
> just with depth 8. How can I define modes with depth 16 for 640x480?
You don't have to reach 16-bit video modes to make your 640x480x16 mode to work
First, it was Rouk's X11 configuration file, shown as example.
Second, if you say 640x480x16, it means that your wished mode is 16.. colors,
16-color need 4-bit, but X supports 8-bits minimum, 16-bit is 32768 colors :).
But your 16-color mode can be safely reached in 8-bit (256 colors) modes, as you
The maximum resolution and depth that you video card supports can be
calculated like that:
x = video_mode.width * video_mode.height * MIN(1, video_mode.depth_in_bits /
If x <= video_card.memory_size, it's THEORICALLY okay, else.. you have to
decrease the resolution or the depth, or to increase your video card.
For instance: x=640*480*1=307200 (bytes); it seems to be okay with your video
card, as well 1024x768x8 works too).
More information about the SDL