Overlays problem
Gerardo Romero

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.

ReyBrujo

Are you using Linux? Can you set another graphic mode? Do you have the latest drivers for your card? Which is yours?

Gerardo Romero

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

Oscar Giner

What video card do you have? Because even my old voodoo3 supports overlay surfaces. I'm surprissed

[edit]
changed :o smily with I'm surprissed.

LSd016
Quote:

even my old voodoo3 supports overlay surfaces

mine doesn't... ???

Gerardo Romero

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.

Cody Harris

What exactly is overlay anyways?

Gerardo Romero

I don't know.
The message box only say: ...overlays not supported. :(

Cody Harris

Try setting something like 24 or 32 bitdepths...

Oscar Giner
Quote:
I said:

even my old voodoo3 supports overlay surfaces

mine doesn't... ???

Only at 16bpp.

Cody Harris

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

Gerardo Romero

set_color_depth(24 or 32), it does not work, sorry.

Kitty Cat

I believe the Voodoo cards only support 16-bit overlays. So as Oscar said, try 16-bit color.

Cody Harris

He did that at the beginning, and it failed.

Gerardo Romero

ok, Cody, I try with GFX_DIRECTX_WIN, it didn't work either

Cody Harris

Try GFX_SAFE

Kitty Cat

Oh wait, he's using a 1MB Cirrus Logic. :o No, I doubt that would have any overlays. Create an allegro.cfg file and add this to it:

[graphics]
gfx_card = DXAC

Gerardo Romero

it didn't work either, sorry
I try with all GFX_...

Richard Phipps

Do any of the Allegro examples work?

Kitty Cat

if GFX_SAFE isn't getting you a graphics mode, there's a problem. What resolution is your desktop?

Gerardo Romero

800x600, 16 bits.
Before repairing the monitor, worked well with the examples and my progs. But not in another PC.

ReyBrujo

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?

Gerardo Romero

yes, only with my allegro progs.
they changed to him the tube (TRC, tubo de rayos catodicos)

Bob

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.

Quote:

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.

ReyBrujo

Yeah, that is CRT in english (though I like you speak spanish, we are more and more!).

Cannot think about a solution right now.

Gerardo Romero

i try with 320x200 and it didn't work either.

ReyBrujo

Try 320x200, 8bpp only (not 16).

Richard Phipps

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..?

Surt

You didn't post your full code, so I can only guess, but do you call allegro_init()?

Gerardo Romero

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

Thread #381282. Printed from Allegro.cc