<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>annoying dilemma</title>
		<link>http://www.allegro.cc/forums/view/351722</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 17 Apr 2004 03:46:54 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hi chaps,</p><p> can anyone tell me why my code;</p><div class="source-code snippet"><div class="inner"><pre>
clear<span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a><span class="k2">)</span><span class="k2">;</span>
   
   <span class="c">/* debug */</span>
   report_error<span class="k2">(</span><span class="s">"About to draw to screen."</span><span class="k2">)</span><span class="k2">;</span>
   <span class="c">/* debug */</span>
   
   <a href="http://www.allegro.cc/manual/rectfill" target="_blank"><span class="a">rectfill</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <span class="n">100</span>, <span class="n">50</span>, <span class="n">40</span>, <span class="n">40</span>, <span class="n">3</span><span class="k2">)</span><span class="k2">;</span>
   <a href="http://www.allegro.cc/manual/masked_blit" target="_blank"><span class="a">masked_blit</span></a><span class="k2">(</span>edge_tuft_canvas, <a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <span class="n">0</span>, <span class="n">0</span>, <span class="n">400</span>, <span class="n">300</span>, <span class="n">48</span>, <span class="n">10</span><span class="k2">)</span><span class="k2">;</span>
   <span class="c">//masked_stretch_blit(edge_tuft_canvas, screen, 0, 0, 48, 10, 300, 200, 48 * 3, 10 * 3);</span>
   <a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
   <a href="http://www.delorie.com/djgpp/doc/libc/libc_298.html" target="_blank">exit</a><span class="k2">(</span><span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

results in nothing but a black screen ? So you know and b4 u ask, i have set a color depth (8), have set the gfx mode (auto 1024, 768).</p><p>Thanks, I&#39;m really miffed. Can&#39;t understand it.</p><p>Could it be black magic <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /> ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (William Labbett)</author>
		<pubDate>Sat, 17 Apr 2004 01:13:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
This is not a <a href="http://dictionary.reference.com/search?q=dilemma">dilemma</a>. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>Anyways, if you&#39;re in Windows, remember that DirectX some times forgets about its video memory, loses it, flips out and clears the screen. You might need to be constantly updating it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Sat, 17 Apr 2004 01:16:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code snippet"><div class="inner"><pre><span class="k1">void</span> <a href="http://www.allegro.cc/manual/rectfill" target="_blank"><span class="a">rectfill</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span>bmp, <span class="k1">int</span> x1, <span class="k1">int</span> y1, <span class="k1">int</span> x2, <span class="k1">int</span> y2, <span class="k1">int</span> color<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
Note that it doesn&#39;t say x, y, <i>width, height</i>.</p><p>Also, just so you know, for the &lt;code&gt; tags, replace the &lt;&gt; with [].
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Sat, 17 Apr 2004 01:27:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hmm, are you sure edge_tuft_canvas is a non-black bitmap?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Krzysztof Kluczek)</author>
		<pubDate>Sat, 17 Apr 2004 02:34:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No, Chris spotted the problem.<br />Respect to Chris.</p><p>It was a dilemma for me...... no i checked the link - still not totally clear what a rel dilemma is now but yes I was wrong; it wasn&#39;t a dilemma.::)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (William Labbett)</author>
		<pubDate>Sat, 17 Apr 2004 02:41:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Strictly a dilemma is a situation where you have exactly two choices to choose between and you don&#39;t know which to choose; if you relax the definition a bit it&#39;s a situation with multiple choices and you don&#39;t know which to choose. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Sat, 17 Apr 2004 03:27:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>BTW, it&#39;s [code, not &lt;code.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Korval)</author>
		<pubDate>Sat, 17 Apr 2004 03:46:54 +0000</pubDate>
	</item>
</rss>
