<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>GFX_AUTODETECT_WINDOWED+maximize</title>
		<link>http://www.allegro.cc/forums/view/591389</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 14 May 2007 22:31:31 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi! How do you make your program run at maximized window?
</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">int</span> monitorx<span class="k3">=</span>getmaxx<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span><span class="c">//these 2 functions would work in Mr.Borlands graphics.h</span>
<span class="k1">int</span> monitory<span class="k3">=</span>getmaxy<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<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_WINDOWED,monitorx,monitory,<span class="n">0</span>,<span class="k2">[</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (thirdy)</author>
		<pubDate>Mon, 14 May 2007 18:18:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Use GFX_AUTODETECT_FULLSCREEN instead of GFX_AUTODETECT_WINDOWED
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Mon, 14 May 2007 18:25:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I need windowed mode but in maximum size
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (thirdy)</author>
		<pubDate>Mon, 14 May 2007 18:33:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Use Platform Specific created windows.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Mon, 14 May 2007 18:52:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That would not be a good option for mes. Is there a way in allegro wer you can get the current screen resolution?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (thirdy)</author>
		<pubDate>Mon, 14 May 2007 19:06:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="source-code"><a href="http://www.allegro.cc/manual/get_desktop_resolution" target="_blank"><span class="a">get_desktop_resolution</span></a></span><br />You won&#39;t necessarilly be able to get a maximized window, however. The size you pass to set_gfx_mode is the size of your drawing area, excluding the window borders. You can&#39;t gaurantee the size of the window borders, and certain systems won&#39;t let you create a window bigger than the screen.</p><p>The best thing to do would be to use a standard windowed resolution (640x480 or 800x600 or something), and switch to a fullscreen mode when you want to &quot;maximize&quot;.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Mon, 14 May 2007 19:12:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You have to use your own custom window with Allegro in order to make the window both resizable and able to use the maximize button. In the allegro\tests\win folder is a set of files called dxwindow which will demonstrate how to properly do this. (As there are a number of limitations and things you must do to correctly use your own window with Allegro.)</p><p>--- Kris Asick (Gemini)<br />--- <a href="http://www.pixelships.com">http://www.pixelships.com</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kris Asick)</author>
		<pubDate>Mon, 14 May 2007 22:31:31 +0000</pubDate>
	</item>
</rss>
