www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/17/00:40:04

Message-ID: <001001bdf987$e9dfc760$b36f19c4@default>
From: rylan AT intekom DOT co DOT za (StefanViljoen,6599)
To: <djgpp AT delorie DOT com>
Subject: Re: Transparent 16bpp mouse in Allegro
Date: Fri, 16 Oct 1998 08:09:41 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Reply-To: djgpp AT delorie DOT com

-----Original Message-----
From: Tomas Muller <Muller AT 98 DOT gyarab DOT cz>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Thursday, October 15, 1998 10:27 AM
Subject: Transparent 16bpp mouse in Allegro


>Hello,
>anybody know how to make custom mouse cursor transparent in 16bpp
>modes???


Surround it with the pink 16bpp transparency color. It is defined in
allegro. All you have to do is save the cursor you want to use to a .BMP
(using allegro if you like), then load this .BMP do an allegro floodfill()
around it with the 16bpp transparency color, and save it again. When you
next load this and dump it to the screen as a mouse cursor the background
will show through the pink 16bpp transparency color areas.

Kind Regards,

Rylan
Is truth beauty or is beauty truth?
http://home.intekom.com/rylan/index.html


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019