<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Can&#39;t See Display, HD 6470M, Switchable Graphics</title>
		<link>http://www.allegro.cc/forums/view/608020</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 05 Aug 2011 09:39:41 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello all,</p><p>So I&#39;m new to Allegro and I&#39;m having a problem seeing the display. Here&#39;s a picture of my desktop to help illustrate the problem:</p><p><span class="remote-thumbnail"><span class="json">{"name":"tlhhW.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/e\/2e4e48df6ac6f3334ef8d494071bbb96.png","w":1366,"h":768,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/e\/2e4e48df6ac6f3334ef8d494071bbb96"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/2/e/2e4e48df6ac6f3334ef8d494071bbb96-240.jpg" alt="tlhhW.png" width="240" height="134" /></span></p><p>Alternative Link: <a href="http://i.imgur.com/tlhhW.png">http://i.imgur.com/tlhhW.png</a></p><p>As you can see in the image, I&#39;m running a demo in Allegro 5 in MS Visual Studio 10. I can see the display for the game in the taskbar, but when I click on it to maximize it, nothing happens.</p><p>This is on my HP laptop with a Radeon HD 6470M with switchable graphics. When I switch the graphics over to the low-power Intel integrated graphics, the allegro display comes up fine.</p><p>Is this a problem with my Radeon drivers or allegro? I&#39;ve re-installed the latest AMD display drivers and it hasn&#39;t helped.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DrewDog)</author>
		<pubDate>Fri, 05 Aug 2011 08:19:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try switching the demo to use OpenGL by adding al_set_new_display_flags(ALLEGRO_OPENGL) before the al_create_display() call. See if that works.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Fri, 05 Aug 2011 08:22:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s probably being positioned off screen. </p><p>Try playing with <span class="source-code"><a href="http://www.allegro.cc/manual/al_get_window_position"><span class="a">al_get_window_position</span></a><span class="k2">(</span><span class="k2">)</span></span> and <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_window_position"><span class="a">al_set_window_position</span></a><span class="k2">(</span><span class="k2">)</span></span>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 05 Aug 2011 08:23:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ah, I had someone have the problem Matthew describes actually... I didn&#39;t investigate it because I&#39;m not sure where to begin. Do you have another monitor connected by any chance?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Fri, 05 Aug 2011 08:26:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If the default monitor starts at (-screen_w,0) or (screen_w,0) instead of (0,0) perhaps Allegro is centering it incorrectly. i.e., If Allegro always uses (screen_w/2 - display_w/2, screen_h/2 - display_h/2) as the starting spot, it could be wrong.</p><p>Just a guess. Seems like the only reasonable explanation.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 05 Aug 2011 08:35:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks for the quick replies!</p><p>It seems Matthew was correct; the display is being positioned off-screen.</p><p>When I called al_get_window_position(display, x_test, y_test), the x and y positions were:<br />x_test, y_test = -320 32792</p><p>When I called al_set_window_position(display, 0, 0), the display is positioned in the upper left corner of the screen and everything is fine.</p><p>I don&#39;t understand why the default x and y values would be -320 and 32792, though. That seems pretty weird. I guess I should just always reposition the window during the initialization of the display.</p><p>Thanks again!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DrewDog)</author>
		<pubDate>Fri, 05 Aug 2011 09:01:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can you run ex_monitorinfo and paste the results of that here?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 05 Aug 2011 09:03:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Sure. It actually took a little doing because I couldn&#39;t get common.c to compile, but I just printed the info to the console instead.</p><p>Here is the output:</p><p>1 adapters found...<br />Adapter 0<br />(-858993460, -858993460) - (-858993460, -858993460)<br />   Available fullscreen display modes:<br />   Mode 0: 320 x 200, 60 Hz<br />   Mode 1: 320 x 200, 40 Hz<br />   Mode 2: 320 x 240, 60 Hz<br />   Mode 3: 320 x 240, 40 Hz<br />   Mode 4: 400 x 300, 60 Hz<br />   Mode 5: 400 x 300, 40 Hz<br />   Mode 6: 512 x 384, 60 Hz<br />   Mode 7: 512 x 384, 40 Hz<br />   Mode 8: 640 x 400, 60 Hz<br />   Mode 9: 640 x 400, 40 Hz<br />   Mode 10: 640 x 480, 60 Hz<br />   Mode 11: 640 x 480, 40 Hz<br />   Mode 12: 800 x 600, 60 Hz<br />   Mode 13: 800 x 600, 40 Hz<br />   Mode 14: 1024 x 768, 60 Hz<br />   Mode 15: 1024 x 768, 40 Hz<br />   Mode 16: 1280 x 600, 60 Hz<br />   Mode 17: 1280 x 600, 40 Hz<br />   Mode 18: 1280 x 720, 60 Hz<br />   Mode 19: 1280 x 720, 40 Hz<br />   Mode 20: 1280 x 768, 60 Hz<br />   Mode 21: 1280 x 768, 40 Hz<br />   Mode 22: 1360 x 768, 60 Hz<br />   Mode 23: 1360 x 768, 40 Hz<br />   Mode 24: 1366 x 768, 40 Hz<br />   Mode 25: 1366 x 768, 60 Hz<br />   Mode 26: 320 x 200, 60 Hz<br />   Mode 27: 320 x 200, 40 Hz<br />   Mode 28: 320 x 240, 60 Hz<br />   Mode 29: 320 x 240, 40 Hz<br />   Mode 30: 400 x 300, 60 Hz<br />   Mode 31: 400 x 300, 40 Hz<br />   Mode 32: 512 x 384, 60 Hz<br />   Mode 33: 512 x 384, 40 Hz<br />   Mode 34: 640 x 400, 60 Hz<br />   Mode 35: 640 x 400, 40 Hz<br />   Mode 36: 640 x 480, 60 Hz<br />   Mode 37: 640 x 480, 40 Hz<br />   Mode 38: 800 x 600, 60 Hz<br />   Mode 39: 800 x 600, 40 Hz<br />   Mode 40: 1024 x 768, 60 Hz<br />   Mode 41: 1024 x 768, 40 Hz<br />   Mode 42: 1280 x 600, 60 Hz<br />   Mode 43: 1280 x 600, 40 Hz<br />   Mode 44: 1280 x 720, 60 Hz<br />   Mode 45: 1280 x 720, 40 Hz<br />   Mode 46: 1280 x 768, 60 Hz<br />   Mode 47: 1280 x 768, 40 Hz<br />   Mode 48: 1360 x 768, 60 Hz<br />   Mode 49: 1360 x 768, 40 Hz<br />   Mode 50: 1366 x 768, 40 Hz<br />   Mode 51: 1366 x 768, 60 Hz
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DrewDog)</author>
		<pubDate>Fri, 05 Aug 2011 09:27:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> (-858993460, -858993460) - (-858993460, -858993460)</p></div></div><p>Those numbers are 0xcccccccc, so something isn&#39;t initialized. It&#39;s possible this has already been fixed in 5.1 SVN, but I don&#39;t know.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 05 Aug 2011 09:39:41 +0000</pubDate>
	</item>
</rss>
