Message-ID: <378CC261.361BBEF9@ameritech.net> From: S Prasad X-Mailer: Mozilla 4.04 [en]C-AIT (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro shading, once again I'm lost References: <378C896D DOT BA341D0 AT ameritech DOT net> <378C931E DOT 14AEE6C1 AT in DOT stud DOT tu-ilmenau DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 8 Date: Wed, 14 Jul 1999 13:01:21 -0400 NNTP-Posting-Host: 209.18.29.77 X-Trace: nntp0.detroit.mi.ameritech.net 931972256 209.18.29.77 (Wed, 14 Jul 1999 13:10:56 EDT) NNTP-Posting-Date: Wed, 14 Jul 1999 13:10:56 EDT Organization: Ameritech.Net www.ameritech.net Complaints: abuse AT ameritech DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > In 16bit mode you have > double ShadeCoefficient; > Color = BMP->line[y][x] * ShadeCoefficient; Thank you for the suggestion! Unfortunately, the code will run into some problems... Since 16 bit mode is 5.6.5 format, when you multiply, you will shift some green into the red, and the blue into the green. So maybe that won't work?