<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>bitmaps flicker when moving the mouse</title>
		<link>http://www.allegro.cc/forums/view/618078</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 27 Mar 2020 10:43:29 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have this bit of code that&#39;s saving the position of the mouse cursor, but it&#39;s causing my bitmaps to flicker.</p><div class="source-code snippet"><div class="inner"><pre>    <a href="http://www.allegro.cc/manual/ALLEGRO_MOUSE_STATE"><span class="a">ALLEGRO_MOUSE_STATE</span></a> mouseState<span class="k2">;</span>      
    
    mouseX <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_get_mouse_state_axis"><span class="a">al_get_mouse_state_axis</span></a><span class="k2">(</span><span class="k3">&amp;</span>mouseState, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
    mouseY <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_get_mouse_state_axis"><span class="a">al_get_mouse_state_axis</span></a><span class="k2">(</span><span class="k3">&amp;</span>mouseState, <span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

I&#39;ve also tried using events to save the position of the cursor, but that still causes flickering.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DuncanShine)</author>
		<pubDate>Fri, 27 Mar 2020 01:17:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>what is your drawing code? I doubt this code is the culprit.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DanielH)</author>
		<pubDate>Fri, 27 Mar 2020 04:22:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="">DuncanShine</a> said:</div><div class="quote"><p>
 flickering. 
</p></div></div><p>
That means it is changing position rapidly. That means the values you&#39;re reading are changing rapidly. Did you get the mouse state before testing the values?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Fri, 27 Mar 2020 10:43:29 +0000</pubDate>
	</item>
</rss>
