delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/14/14:48:05

From: gautam AT interlog DOT com (Gautam N. Lad)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Truecolour (HELP!)
Date: Sun, 14 Dec 97 16:09:42 GMT
Organization: InterLog Internet Services
Lines: 37
Message-ID: <670vir$ort$1@news.interlog.com>
References: <66vdid$gsm$1 AT news DOT interlog DOT com> <1oBO+HAgk9k0EwcW AT talula DOT demon DOT co DOT uk>
NNTP-Posting-Host: ip220-135.cc.interlog.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <1oBO+HAgk9k0EwcW AT talula DOT demon DOT co DOT uk>,
   Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk> wrote:
>Gautam N. Lad writes:
>>What am I doing wrong? I'm not getting gpfs, or compilation errors. 
>
>Well, what are you getting? You don't say what the problem is :-)
Nothing now.

>You are doing the filtering in an RGB structure, which contains unsigned
>char fields. But I think some of your temporary values will overflow
>that range, so you really need to use int or float types.
>
>Where does the source image come from? Are you sure it is a valid
>graphic in the correct color depth for the video mode? If you are
>loading it before you set the screen mode, it may be getting converted
>into the wrong pixel format...

Well, here's what happened.  I blit the image at (0,0), but when the filtering 
process is run, it starts at (-2, -2), which was causing incorrect rgb values to 
come out.  So, I moved the image a little, so the filtering would start at (0,0), 
everything worked.
I changed the rgb to my own RGBI so it's an int, and I already did that, when it 
was causing problems.

The problems was the modified image.  I didn't look right.

Thanks anyways!
Bye!

-------------------------------------------------------------
Gautam N. Lad
-------------------------------------------------------------
E-Mail:	gautam AT interlog DOT com
Website:	http://www.interlog.com/~gautam

POV-Ray Software, Gallery, and Links!
-------------------------------------------------------------

- Raw text -


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