Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » 1680x1050 AllegroGL

This thread is locked; no one can reply to it. rss feed Print
1680x1050 AllegroGL
Steve Terry
Member #1,989
March 2002
avatar

I'm just curious if AllegroGL can support a resolution of 1680x1050 and what I will have to do to configure it so that it works. I know AllegroGL cannot set the refresh rate but when I put my program into 1680x1050 res I get an out of sync error on my monitor. I'm guessing it's trying to set a refresh rate higher or lower than my monitor can handle. Any way to work around this?

___________________________________
[ Facebook ]
Microsoft is not the Borg collective. The Borg collective has got proper networking. - planetspace.de
Bill Gates is in fact Shawn Hargreaves' ßî+çh. - Gideon Weems

Richard Phipps
Member #1,632
November 2001
avatar

You can request different refresh rates in AllegroGL. Maybe that will help.

Steve Terry
Member #1,989
March 2002
avatar

Looking at the AGL docs I don't see any refresh settings I can set. Unless you mean using OpenGL commands to set the refresh rate. Any sample code to do so?

___________________________________
[ Facebook ]
Microsoft is not the Borg collective. The Borg collective has got proper networking. - planetspace.de
Bill Gates is in fact Shawn Hargreaves' ßî+çh. - Gideon Weems

Richard Phipps
Member #1,632
November 2001
avatar

I think you can use AllegroGL to 'request' various settings, including the refresh rate. Failing that you could try using OpenGL directly to do so.

gnolam
Member #2,030
March 2002
avatar

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Arthur Kalliokoski
Second in Command
February 2005
avatar

My video card can (allegedly) do 1600 x 1200, but the monitor can't. A menu looking thingee pops up (monitor generated) saying "Signal out of range". Have you gotten this resolution in other apps?

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Steve Terry
Member #1,989
March 2002
avatar

I have a widescreen monitor capable of 1680x1050, I've gotten other games to run in that mode before.

___________________________________
[ Facebook ]
Microsoft is not the Borg collective. The Borg collective has got proper networking. - planetspace.de
Bill Gates is in fact Shawn Hargreaves' ßî+çh. - Gideon Weems

Milan Mimica
Member #3,877
September 2003
avatar

Does get_gfx_mode_list() return the wanted resolution? If it does then set_gfx_mode() should work, with help of request_refresh_rate() if necessary.

Thomas Fjellstrom
Member #476
June 2000
avatar

GL used to have issues with surfaces or textures larger than say 2000x2000, but I think thats been lifted with some of the newer cards. not sure which ones...

My radeon 9600xt has a max res of: 2048x1536 in 16bit color, at 60hz.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Steve Terry
Member #1,989
March 2002
avatar

gfx_mode_list shows up to 1600x1200 which is a 4:3 aspect IIRC, no 1680x1050. Any way to have allegro support this resolution? Widescreen monitors are becoming very popular lately.

___________________________________
[ Facebook ]
Microsoft is not the Borg collective. The Borg collective has got proper networking. - planetspace.de
Bill Gates is in fact Shawn Hargreaves' ßî+çh. - Gideon Weems

Milan Mimica
Member #3,877
September 2003
avatar

Is the wanted resolution listed in display settings?

Thomas Fjellstrom
Member #476
June 2000
avatar

My lcd get 1280x1024. thats sorta wide screen ;)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Milan Mimica
Member #3,877
September 2003
avatar

I get 1280x768 :P

BAF
Member #2,981
December 2002
avatar

My laptop is 1280x800.

Milan Mimica
Member #3,877
September 2003
avatar

ah, mine too, there is no 1280x768 ;D

Marco Radaelli
Member #3,028
December 2002
avatar

Quote:

My lcd get 1280x1024. thats sorta wide screen ;)

Thats sorta crap :P
It's not either 4:3 nor 16:9, but 5:4 >:(
Note: Mine does the same (1280x1024), and "nice" thing about lcds is that if you subresolutions interpolarions sucks when displaying text ::) (luckily it's not a problem with games).

Back on topic: can you set that resolution in Windows?

Thomas Fjellstrom
Member #476
June 2000
avatar

1280x1024 is the "standard" resolution for non widescreen 17" and 19" LCDs. Its not like the pixels are mishapen or anything, it really is a little wider.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

BAF
Member #2,981
December 2002
avatar

Quote:

ah, mine too, there is no 1280x768

I'm pretty sure there is a 1280x768, its just less common.

Marco Radaelli
Member #3,028
December 2002
avatar

Quote:

1280x1024 is the "standard" resolution for non widescreen 17" and 19" LCDs.

If very common means standard, then you're right. I got the quotes around 'standard' :).

The point with those resolutions is that they aren't 4:3, but about pixel shapes I'm not so expert. I just don't like that those monitors have a number of pixels that's not classic (like usual CRTs etc...).

Charlie Restivo
Member #4,951
August 2004

For what it's worth, I have a widescreen laptop with a resolution of 1680x1050, and my AllegroGL programs work at that res without any problems. And I don't have to set up anything special to get it to work. I'm not really sure what the problem could be??? Hard to say if it is the monitor or the video card.

Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

If very common means standard, then you're right.

I haven't seen any 17" or 19" non "widescreen" monitor LCDs that didn't list 1280x1024 as their native mode.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Marco Radaelli
Member #3,028
December 2002
avatar

Quote:

I haven't seen any 17" or 19" non "widescreen" monitor LCDs that didn't list 1280x1024 as their native mode.

I never said they didn't. I'm saying that 5:4 is a weird ratio :)

One may ask: why didn't they make it 1024x768, getting 4:3?

BAF
Member #2,981
December 2002
avatar

Because 1280x1024 is a higher resolution. Why would you want 1024x768? That resolution is so 5 years ago. :P

Marco Radaelli
Member #3,028
December 2002
avatar

I'm sorry, I meant 1280x960 (not 1024x768) ;D

Go to: