<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>set color depth, paint, and mouse cursor</title>
		<link>http://www.allegro.cc/forums/view/585581</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 24 May 2006 16:37:31 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m working my way through Game Programming All in One, I&#39;m up to Chapter 7. Between Chp 7 and Chp 5 I&#39;m trying to figure out how to set the mouse pointer to a bmp I drew with paint. Paint can save as 24 bit, 16 bit, and 256 color (8 bit, right?). The image is a wite x(two lines) with a transparent background. If i save as 16 bit, black works as a transparent color. Pink doesn&#39;t work. I tried changing the color depth, but the screen turns blue if I change to 16 bit, and black on 24 bit. Although, on 24 bit the mouse with pink background displays fine. I&#39;m thinking that I have a bad video card, even though  the computer isn&#39;t that old. Can anybody help me out?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (aadfo824)</author>
		<pubDate>Wed, 24 May 2006 04:50:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Show us the code.</p><p>My guess is you&#39;re setting the color depth after setting a graphics mode or loading your bitmaps...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Wed, 24 May 2006 04:57:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Here is the code</p><div class="source-code snippet"><div class="inner"><pre> <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
 <a href="http://www.allegro.cc/manual/set_color_depth" target="_blank"><span class="a">set_color_depth</span></a><span class="k2">(</span><span class="n">8</span><span class="k2">)</span><span class="k2">;</span> <span class="c">//What should I set as?</span>
 <a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_AUTODETECT_WINDOWED, <span class="n">640</span>, <span class="n">480</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
 
 <span class="c">//some irrevelant(to mouse) such as declaring variables </span>

 <a href="http://www.allegro.cc/manual/install_mouse" target="_blank"><span class="a">install_mouse</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
 
 <a href="http://www.allegro.cc/manual/BITMAP" target="_blank"><span class="a">BITMAP</span></a> <span class="k3">*</span> mouse <span class="k3">=</span> <a href="http://www.allegro.cc/manual/load_bitmap" target="_blank"><span class="a">load_bitmap</span></a><span class="k2">(</span><span class="s">"pointer.bmp"</span>, NULL<span class="k2">)</span><span class="k2">;</span>
 <a href="http://www.allegro.cc/manual/set_mouse_sprite" target="_blank"><span class="a">set_mouse_sprite</span></a><span class="k2">(</span>mouse<span class="k2">)</span><span class="k2">;</span>
 <a href="http://www.allegro.cc/manual/set_mouse_sprite_focus" target="_blank"><span class="a">set_mouse_sprite_focus</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
 <a href="http://www.allegro.cc/manual/show_mouse" target="_blank"><span class="a">show_mouse</span></a><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>
</pre></div></div><p>
Remember the MS Paint side of it too.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (aadfo824)</author>
		<pubDate>Wed, 24 May 2006 05:13:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What edition of the Game Programming All in One book are you using?  Anyway, don&#39;t forget about allegro.cc&#39;s online manual.  Look up set_color_depth if you want to know how it works exactly.  </p><p>Get familiar with the manual.  I&#39;ve used the GPAiO book as well (2nd edition), but the manual completes the knowledge from that book.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Wed, 24 May 2006 05:26:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m using the 2nd edition. I checked the manual, I&#39;m doing everything right. Maybe I need to call set_color_conversion, but whenever I try, I get</p><div class="quote_container"><div class="title">error said:</div><div class="quote"><p>
variable or field `set_color_conversion&#39; declared  void
</p></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (aadfo824)</author>
		<pubDate>Wed, 24 May 2006 06:02:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
set_color_depth(8); //What should I set as?
</p></div></div><p>
Whatever youwant to use for colour depth. 16 should be a sensible default value.</p><p>Anyway, post your bitmap.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
variable or field `set_color_conversion&#39; declared void
</p></div></div><p>
No idea. Post some code that produces this error.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 24 May 2006 12:57:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hooray that fixes the mouse, but it causes me another problem. I have been using 0-15 for colors, and now They all display as black and blue. Well, I&#39;ll just have to fix it with makecol. </p><p>Thank you for all your help.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (aadfo824)</author>
		<pubDate>Wed, 24 May 2006 16:37:31 +0000</pubDate>
	</item>
</rss>
