<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Display Resolution</title>
		<link>http://www.allegro.cc/forums/view/587370</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 02 Sep 2006 21:06:39 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>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:
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_AUTODETECT_FULLSCREEN, <span class="n">800</span>, <span class="n">600</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span>
</pre></div></div><p>

The problem now is that this doesn&#39;t work 100% correctly. The Screen-Bitmap (where to draw) I get has a size of 800x600, but it doesn&#39;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 ?<br />Thanks...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FreeCastle)</author>
		<pubDate>Fri, 01 Sep 2006 20:46:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The problem now is that this doesn&#39;t work 100% correctly. The Screen-Bitmap (where to draw) I get has a size of 800x600, but it doesn&#39;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 ?
</p></div></div><p>
You are using CRT monitor, right? <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /> If yes, then probably you just have to play a bit with monitor image positioning settings. Monitors usually remember only limited number of recently used display modes (various refresh rates counts as display modes, too), so if you didn&#39;t use 800x600 recently positioning could have got reset to defaults. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krzysztof Kluczek)</author>
		<pubDate>Fri, 01 Sep 2006 20:52:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes I use a CRT monitor.<br />That means, I have to adjust the hardware settings of my monitor ? Sorry I am not a great English speaker, but I hope you understand. (If not: I mean the buttons on my monitor, which I can change with my hands)</p><p>But ist there no (Allegro)software solution for that problem ? I mean, if I e.g. start simple games coded with DirectDraw I don&#39;t have this problem...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FreeCastle)</author>
		<pubDate>Fri, 01 Sep 2006 20:59:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If a DirectDraw program has the problem and yours doesn&#39;t, and they both use the exact same video mode, then the problem must be in your code. Allegro uses DirectX in Windows.<br />Have you checked the same program in a windowed graphics mode?</p><p>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&#39;t access a crt monitor&#39;s adjustment data.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Fri, 01 Sep 2006 21:04:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>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&#39;t know exactly) and it is written with DDraw. There I don&#39;t have this problem...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FreeCastle)</author>
		<pubDate>Fri, 01 Sep 2006 22:48:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
it is written with DDraw
</p></div></div><p>
Allegro uses DirectDraw.</p><p>Anyway, long story, but your monitor may need to be adjusted (it&#39;s what these buttons on the front are for) if it&#39;s running in a different display mode or witha different refresh rate. It&#39;s not a software problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Fri, 01 Sep 2006 22:52:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve this problem too in my game... I use Windows ME and I&#39;ve a 32 bit colour game:<br />My starting Windows resolution is 1024x768 and I&#39;ve a 17&#39;&#39; monitor flat in front but CRT (is it right ? CRT means that the monitor have a back long)</p><p>1024x768 ok<br />800x600 ok<br />640x480 black area upper and right<br />320x240 ehy, this didn&#39;t work now... boh.</p><p>This is a problem I didn&#39;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..</p><p>ciao
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LordHolNapul)</author>
		<pubDate>Sat, 02 Sep 2006 00:37:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>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.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BAF)</author>
		<pubDate>Sat, 02 Sep 2006 05:52:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Till now I didn&#39;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 <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /><br />I&#39;ll try it later with adjusting... BUT even if this solves that problem I don&#39;t think that this is a satisfying solution. I mean, every time I want to start an Allegro app I have to adjust the monitor settings on my monitor and then when I get back to windows I have to adjust the monitor settings again, so that I have a correct display on windows.....
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FreeCastle)</author>
		<pubDate>Sat, 02 Sep 2006 14:17:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Bump so you can add something FreeCastle... <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Edit:<br />I don&#39;t think it is a resolution problem as much as a frequency problem... There should be some sort of frequency control in your GFX driver. You should be able to manually set this to some locked freqency and you wont have to adjust your monitor after each use of &#39;such-and-such&#39; program...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Don Freeman)</author>
		<pubDate>Sat, 02 Sep 2006 20:17:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Do the allegro examples (especially the ones where you can choose different screen sizes and colour depths), have the same problem?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Sat, 02 Sep 2006 20:19:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ahhh, okay now I got it <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /><br />Thanke you all very much for your help
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (FreeCastle)</author>
		<pubDate>Sat, 02 Sep 2006 21:06:39 +0000</pubDate>
	</item>
</rss>
