Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Overlays problem

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Overlays problem
Gerardo Romero
Member #4,794
July 2004

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
Moderator
January 2001
avatar

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

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Gerardo Romero
Member #4,794
July 2004

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
Member #2,207
April 2002
avatar

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
Member #3,561
May 2003

Quote:

even my old voodoo3 supports overlay surfaces

mine doesn't... ???

____________________________________________
[update soon]

Gerardo Romero
Member #4,794
July 2004

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
Member #4,406
March 2004
avatar

What exactly is overlay anyways?

---------------------------------
Homepage - Art (Photography)
I'm QBasicer on #allegro on Freenode.

Gerardo Romero
Member #4,794
July 2004

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

Cody Harris
Member #4,406
March 2004
avatar

Try setting something like 24 or 32 bitdepths...

---------------------------------
Homepage - Art (Photography)
I'm QBasicer on #allegro on Freenode.

Oscar Giner
Member #2,207
April 2002
avatar

Quote:
I said:

even my old voodoo3 supports overlay surfaces

mine doesn't... ???

Only at 16bpp.

Cody Harris
Member #4,406
March 2004
avatar

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

---------------------------------
Homepage - Art (Photography)
I'm QBasicer on #allegro on Freenode.

Gerardo Romero
Member #4,794
July 2004

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

Kitty Cat
Member #2,815
October 2002
avatar

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

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

Cody Harris
Member #4,406
March 2004
avatar

He did that at the beginning, and it failed.

---------------------------------
Homepage - Art (Photography)
I'm QBasicer on #allegro on Freenode.

Gerardo Romero
Member #4,794
July 2004

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

Cody Harris
Member #4,406
March 2004
avatar

Try GFX_SAFE

---------------------------------
Homepage - Art (Photography)
I'm QBasicer on #allegro on Freenode.

Kitty Cat
Member #2,815
October 2002
avatar

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

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

Gerardo Romero
Member #4,794
July 2004

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

Richard Phipps
Member #1,632
November 2001
avatar

Kitty Cat
Member #2,815
October 2002
avatar

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

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

Gerardo Romero
Member #4,794
July 2004

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

ReyBrujo
Moderator
January 2001
avatar

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?

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Gerardo Romero
Member #4,794
July 2004

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

Bob
Free Market Evangelist
September 2000
avatar

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.

--
- Bob
[ -- All my signature links are 404 -- ]

ReyBrujo
Moderator
January 2001
avatar

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

Cannot think about a solution right now.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

 1   2 


Go to: