![]() |
|
Display Resolution |
FreeCastle
Member #7,724
September 2006
|
Hi, I am a WinXP-User and have a question about the display resolution. Under Windows I use 1024x768, but for my Allegro applications I want to use something like 640x480 or 800x600. So I use the following line: set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, 800, 600, 0, 0)
The problem now is that this doesn't work 100% correctly. The Screen-Bitmap (where to draw) I get has a size of 800x600, but it doesn't cover the whole screen. There is always a black area on the left side of the screen. I hope you understand what I mean... so maybe anyone knows this problem or has an solution for it ? |
Krzysztof Kluczek
Member #4,191
January 2004
![]() |
Quote: The problem now is that this doesn't work 100% correctly. The Screen-Bitmap (where to draw) I get has a size of 800x600, but it doesn't cover the whole screen. There is always a black area on the left side of the screen. I hope you understand what I mean... so maybe anyone knows this problem or has an solution for it ?
You are using CRT monitor, right? ________ |
FreeCastle
Member #7,724
September 2006
|
Yes I use a CRT monitor. But ist there no (Allegro)software solution for that problem ? I mean, if I e.g. start simple games coded with DirectDraw I don't have this problem... |
Tobias Dammers
Member #2,604
August 2002
![]() |
If a DirectDraw program has the problem and yours doesn't, and they both use the exact same video mode, then the problem must be in your code. Allegro uses DirectX in Windows. Apart from that, you cannot set the crt settings from within allegro. Some video cards allow you to make some adjustments, but it mostly comes down to the monitor. Even windows can't access a crt monitor's adjustment data. --- |
FreeCastle
Member #7,724
September 2006
|
Well, I have to admit, that I have no sample DDraw programm of myself. But take e.g. the game StarCraft. It runs in 640x480 (or 800x600, I don't know exactly) and it is written with DDraw. There I don't have this problem... |
Evert
Member #794
November 2000
![]() |
Quote: it is written with DDraw Allegro uses DirectDraw. Anyway, long story, but your monitor may need to be adjusted (it's what these buttons on the front are for) if it's running in a different display mode or witha different refresh rate. It's not a software problem. |
LordHolNapul
Member #3,619
June 2003
![]() |
I've this problem too in my game... I use Windows ME and I've a 32 bit colour game: 1024x768 ok This is a problem I didn't consider too much. But Remember to test the return code of the Install functions, to prevent and notify errors during the setup of your games.. ciao |
BAF
Member #2,981
December 2002
![]() |
Did you adjust the settings? You probably just have to set the correct positioning, etc on your monitor. And yes, CRTs are the big ones. |
FreeCastle
Member #7,724
September 2006
|
Till now I didn't change anything. But I tried to switch my windows resolution to 800x600 and then tried to start my Allegro app and it was the same result |
Don Freeman
Member #5,110
October 2004
![]() |
Bump so you can add something FreeCastle... Edit: -- |
Richard Phipps
Member #1,632
November 2001
![]() |
Do the allegro examples (especially the ones where you can choose different screen sizes and colour depths), have the same problem? |
FreeCastle
Member #7,724
September 2006
|
Ahhh, okay now I got it |
|