<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro 4.2 window size constraints</title>
		<link>http://www.allegro.cc/forums/view/602508</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 19 Dec 2009 15:19:59 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,<br />I&#39;m making a game in Allegro that requires the game to be a certain size based on the desktop resolution. I developed a resizing algorithm that ensures the window is never bigger than DESKTOP_WIDTH - 40, DESKTOP_HEIGHT - 40.<br />It seems however that at certain resolutions, Allegro crashes on initializing the graphics. my algorithm will for instance on 1280 * 800 resolution, -&gt; Allegro Window of 1042 * 613... is there an additional constraint I should be imposing on my window sizing algorithm?</p><p>Thanks
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Mon, 14 Dec 2009 08:06:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try to keep your window sizes as multiples of four. But it shouldn&#39;t crash under any circumstances - how are you handling failures of set_gfx_mode()?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Mon, 14 Dec 2009 08:11:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think set_gfx_mode will fail if you try to make a window larger than the screen (including the window border), so always check the return value of set_gfx_mode, and retry with a smaller size.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 14 Dec 2009 08:13:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>FIXED IT!!!</p><p>They HAVE to be multiples of 2...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Mon, 14 Dec 2009 08:29:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It needs to be a multiple of four.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Mon, 14 Dec 2009 08:34:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>After testing, multiples of 8 fixed everything, thanks all
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Mon, 14 Dec 2009 08:35:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just to make sure use multiples of 16.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Mon, 14 Dec 2009 08:43:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>To make really really extra super sure, use multiples of 0x1000.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Tue, 15 Dec 2009 15:43:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>use multiples of PI.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Tue, 15 Dec 2009 17:40:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You&#39;re all wrong. It&#39;s just a parameter of the gold number derivative.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Tue, 15 Dec 2009 18:03:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/602508/842822#target">GullRaDriel</a> said:</div><div class="quote"><p>
You&#39;re all wrong. It&#39;s just a parameter of the gold number derivative.
</p></div></div><p>

Nope, it&#39;s all about multiple of current NASDAQ index.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (type568)</author>
		<pubDate>Sat, 19 Dec 2009 14:45:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I just make my resolution be 42.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Sat, 19 Dec 2009 15:19:59 +0000</pubDate>
	</item>
</rss>
