Hi
I have the following problem:
message box:
Unable to set any graphic mode
overlays not supported
Code:
set_color_depth(16);
if (set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0) != 0) {
set_color_depth(15);
if (set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0) != 0) {
set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
allegro_message("Error setting a 15 or 16 bpp 800x600 video mode\n%s\n", allegro_error);
exit(1);
}
}
what happens?
Sorry for my english.
Gerardo.
Are you using Linux? Can you set another graphic mode? Do you have the latest drivers for your card? Which is yours?
No, I am using win98.
I try with set_color_depth(8) and he does not work either.
Before repairing the monitor, worked well;
but I try in another monitor and I obtain the same problem.
Gerardo
What video card do you have? Because even my old voodoo3 supports overlay surfaces. I'm surprissed
[edit]
changed
smily with I'm surprissed.
even my old voodoo3 supports overlay surfaces
mine doesn't...
I have a Cirrus Logic 5436 PCI, 1MB of memory, without Direct 3D.
I try in another PC (AMD 500, Win98), and I obtain the same problem.
What exactly is overlay anyways?
I don't know.
The message box only say: ...overlays not supported.
Try setting something like 24 or 32 bitdepths...
even my old voodoo3 supports overlay surfaces
mine doesn't...
Only at 16bpp.
Hey you, why havn't you posted about my problem? I'm dumb!...
What's only at 16?
What if you turned off overlay and tried something from http://alleg.sourceforge.net/onlinedocs/en/index035.html like: GFX_DIRECTX_WIN
set_color_depth(24 or 32), it does not work, sorry.
I believe the Voodoo cards only support 16-bit overlays. So as Oscar said, try 16-bit color.
He did that at the beginning, and it failed.
ok, Cody, I try with GFX_DIRECTX_WIN, it didn't work either
Try GFX_SAFE
Oh wait, he's using a 1MB Cirrus Logic.
No, I doubt that would have any overlays. Create an allegro.cfg file and add this to it:
[graphics] gfx_card = DXAC
it didn't work either, sorry
I try with all GFX_...
Do any of the Allegro examples work?
if GFX_SAFE isn't getting you a graphics mode, there's a problem. What resolution is your desktop?
800x600, 16 bits.
Before repairing the monitor, worked well with the examples and my progs. But not in another PC.
Have you updated your monitor drivers? What does repairing a monitor mean? Changing some inner chipset, replacing it, changing the Windows configuration? Can you play any commercial game, or any of the games downloaded from the Depot?
yes, only with my allegro progs.
they changed to him the tube (TRC, tubo de rayos catodicos)
With only 1 MB of Video RAM, you likely don't have enough memory to hold the framebuffer at all.
Allegro will create 3 screen-sized pages in video RAM. This means that in 640x480x16, you'll need 640*480*(16/8)*3 == 1.75 MB of VRAM. I'm not sure what Allegro does in that case. Does it just abort, or prevent page flipping/triple buffering?
Try a lower resolution, like 320x200.
Before repairing the monitor, worked well;
but I try in another monitor and I obtain the same problem.
This is odd. I suppose you didn't change your drivers / Allegro version? I guess something in your (fixed) monitor affected / broke your video card.
Yeah, that is CRT in english (though I like you speak spanish, we are more and more!).
Cannot think about a solution right now.
i try with 320x200 and it didn't work either.
Try 320x200, 8bpp only (not 16).
If none of these work and you are using Windows then I cannot understand how you get a desktop or other programs to work at all..?
You didn't post your full code, so I can only guess, but do you call allegro_init()?
I have uninstalls the dev-c++ 4.9, and re-installs the older 4.0
and finally worked well!!!
surely is a configuration problem.
thank you.
Gerardo