delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/18/00:15:25

From: "Kertis A. Henderson" <kertis AT frozenwave DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro - Lit sprites
Date: Mon, 18 May 1998 00:01:59 -0400
Organization: Penn State University, Center for Academic Computing
Lines: 28
Message-ID: <355FB2B7.9FE64798@frozenwave.com>
References: <MPG DOT fc806799d66481998969b AT news DOT virgin DOT net> <355E2581 DOT 451C12CA AT frozenwave DOT com> <MPG DOT fc84ef840c8c3a998969d AT news DOT virgin DOT net>
NNTP-Posting-Host: access-mkts1p12.mk.psu.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andrew R. Gillett wrote:
> 
> In article <355E2581 DOT 451C12CA AT frozenwave DOT com>, Kertis A. Henderson
> (kertis AT frozenwave DOT com) wrote:
> > Andrew R. Gillett wrote:
> > >
> > > Is it possible to draw a lit sprite which doesn't tint the sprite's black
> > > background? I am trying to do a scrolltext where each character can be a
> > > different colour, but it always tints the background of each character.
> >
> > Couldn't you use text_mode(-1); and not even draw the background?
> 
> Makes no difference - the background always seems to be tinted. What I
> need is a 'draw_masked_lit_sprite', or something like that. Although all
> the other sprite functions already skip the transparent areas, so I don't
> understand why draw_lit_sprite doesn't as well.
> 
> Btw, my program is in 16-bit colour mode, in case that's any help.


Then, are your fonts in the correct format for 16-bit color mode?  If
you set the background to black instead of the 16-bit reserved
background color, the background would be lit!

-- 

Kertis Henderson
kertis AT frozenwave DOT com

- Raw text -


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