<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_draw_bitmap() wont work after al_resize_display()</title>
		<link>http://www.allegro.cc/forums/view/612275</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 24 Mar 2013 22:46:08 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi!</p><p>I have a game tool in Allegro 5 I`m working on, using Windows 7.</p><p>It works fine, but if I call &#39;al_resize_display()&#39;, &#39;al_draw_bitmap()&#39; will stop drawing on the display...</p><p>Any idea of why that would happen?</p><p>Thanks in advance
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rafael Dazcal)</author>
		<pubDate>Sun, 24 Mar 2013 11:19:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Could be a few reasons - maybe the texture was lost due to some setting you used, like ALLEGRO_NO_PRESERVE_TEXTURE when loading a bitmap? But you would probably know about that. It could also be that you did not reset the drawing target. I don&#39;t know if the backbuffer is auto selected on <span class="source-code"><a href="http://www.allegro.cc/manual/al_resize_display"><span class="a">al_resize_display</span></a></span> or not. So try calling <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_target_bitmap"><span class="a">al_set_target_bitmap</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/al_get_backbuffer"><span class="a">al_get_backbuffer</span></a><span class="k2">(</span>display<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span></span> before you draw again.</p><p>Other than that, the best idea is to show some code using &lt;code&gt;code goes here...&lt;/code&gt; tags.</p><p>Oh, and tell us which version of Allegro 5 you are using.</p><p><u>Edit</u>
</p><div class="quote_container"><div class="title"><a href="https://www.allegro.cc/forums/thread/612274">Allegro 5.1.6 changelog</a> said:</div><div class="quote"><p>
- Sync bitmaps before resizing display to prevent changes being lost<br />    after the resize (D3D).
</p></div></div><p>

This could also be the problem then. Try updating to 5.1.6 and see if it is fixed if you can&#39;t fix it any other way.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 24 Mar 2013 22:46:08 +0000</pubDate>
	</item>
</rss>
