|
color depth under linux |
Marco Aurelio
Member #2,847
October 2002
|
I try to set any resolution under linux My linux is run vesa frame buffer with All my bmps are 32bpp in depth and If I set gfx with same resolution of frame Where is my mistake? |
Thomas Fjellstrom
Member #476
June 2000
|
The default VESA framebufer driver cannot change modes after boot. (IIRC) -- |
Marco Aurelio
Member #2,847
October 2002
|
How could I know what color depth is linux
|
Thomas Fjellstrom
Member #476
June 2000
|
Im not sure, It sounds like the fbcon allegro drivers are allowing you to set a color depth that it doesn't support, like the windowed modes in X and Windows... -- |
Marco Aurelio
Member #2,847
October 2002
|
I don't know how to fix this in Allegro
|
Thomas Fjellstrom
Member #476
June 2000
|
Its not really an allegro problem... Im not sure what the best method to use is... -- |
Evert
Member #794
November 2000
|
The code you posted should work properly, from the looks of it. |
Wer fu
Member #1,084
March 2001
|
The FrameBuffer isn't really reliable, as it let you do graphics but it cannot change of colour depth (and I don't remember if you can change resolution). Although it may be interesting for low-end computer, nowadays X is getting MUCH more popular than the console. Only a bunch of people who know how it work can use it. More newbies are now interested by Linux or using it without even knowing it's not Windows (some people just don't make the difference!), just look at the success of Mandrake! So if you want to catch more people, go for X.
ICQ:71667703 or Email&MSN: werfu_dx@yahoo.fr |
guilt
Member #2,553
July 2002
|
Yeah ,I have tried this thing out .I figured that |
Hein Zelle
Member #217
April 2000
|
Wer Fu> There is no such thing as "Just go for X" when you're programming an allegro game, it depends on the user (allegro configuration) which graphics mode is used. That is, assuming you properly request GFX_AUTODETECT in your game. The framebuffer console can handle only one colordepth, the one it was configured for at startup. It cannot change while running (at least not with the fbcon driver). You can select smaller resolutions (they will only use the centre part of the screen) but not larger, as the resolution cannot change either. Again, only for fbcon, some of the brand-specific framebuffer drivers do support this. If you want to play a game (or develop one) using a framebuffer console, in general make sure you use the same color depth for both, and preferably also the same resolution. The easiest option is to set a truecolor framebuffer, and allow 15,16,24 or 32 bpp in your game. If you give your game a configuration file with the color depth in it, or a command line option, you can select the proper colordepth (matching the framebuffer) when starting the game. Oh, and finally: often it does make a big difference in speed if you use the framebuffer instead of X; for fullscreen action games it can be well worth the "trouble" of getting them to run in a framebuffer. |
|