<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>how many rows in a locked region</title>
		<link>http://www.allegro.cc/forums/view/618456</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 13 Jul 2021 02:48:56 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p> I&#39;ve not been programming using allegro for a while. I&#39;ve forgotten a lot but I&#39;m getting on alright except I&#39;ve got question I didn&#39;t have before.</p><p>When using an ALLEGRO_LOCKED_REGION I know that the pitch isn&#39;t necessarily the<br />same length as the bitmap due to padding and orientation of bitmap. This has made me wonder whether the ALLEGRO_LOCKED_REGION has the same number of rows<br />(height) as the ALLEGRO_BITMAP. Is it safe to assume that when running through<br />the pixels of a locked region</p><div class="source-code snippet"><div class="inner"><pre>
<span class="k1">for</span><span class="k2">(</span>y <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span> y <span class="k3">&lt;</span> <a href="http://www.allegro.cc/manual/al_get_bitmap_height"><span class="a">al_get_bitmap_height</span></a><span class="k2">(</span>bitmap<span class="k2">)</span><span class="k2">;</span> <span class="k3">+</span><span class="k3">+</span>y<span class="k2">)</span>
<span class="k2">{</span>
   <span class="k1">for</span><span class="k2">(</span>x <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span> x <span class="k3">&lt;</span> locked_version_of_bitmap-&gt;pitch<span class="k2">;</span> <span class="k3">+</span><span class="k3">+</span>x<span class="k2">)</span>
   <span class="k2">{</span>
      


   <span class="k2">}</span>
<span class="k2">}</span>
</pre></div></div><p>

will work?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (William Labbett)</author>
		<pubDate>Sun, 11 Jul 2021 23:18:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="https://www.allegro.cc/forums/thread/616922/1030731#target">https://www.allegro.cc/forums/thread/616922/1030731#target</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 11 Jul 2021 23:28:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks Edgar.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (William Labbett)</author>
		<pubDate>Tue, 13 Jul 2021 02:48:56 +0000</pubDate>
	</item>
</rss>
