delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/07/21:30:06

Message-ID: <3B2028D1.C3848A17@home.com>
From: PM <paulm14 AT home DOT com>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: MAJOR ALLEGRO PALLETE PROBLEM
Lines: 35
Date: Fri, 08 Jun 2001 01:28:39 GMT
NNTP-Posting-Host: 24.112.60.10
X-Complaints-To: abuse AT home DOT net
X-Trace: news4.rdc1.on.home.com 991963719 24.112.60.10 (Thu, 07 Jun 2001 18:28:39 PDT)
NNTP-Posting-Date: Thu, 07 Jun 2001 18:28:39 PDT
Organization: Excite AT Home - The Leader in Broadband http://home.com/faster
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hey guys, I think its time to try to get some help from you guys cause
I'm very frustrated. Here's the problem,

When I blit more than 1 bitmap on the screen, the colour is messed up
big time on all bitmaps except the last bitmap that I opened. I'll give
you an example of my code ( this is not actual code, but follows same
structure )

BITMAP *bmp1,*bmp2, *tmp;
PALLETE Pal;

bmp1=load_bitmap("blah blah", Pal);
bmp2=laod_bitmap("blah blah2", Pal);
tmp=create_bitmap(640, 480);

blit(bmp1, tmp, 0, 0, 0, 0, 640, 480); // image 1 goes to temp
blit(bmp2, tmp, 0, 0, 0, 0, 100, 10); // image 2 goes to temp
blit(tmp, screen, 0, 0, 0, 0, 640, 480); // temp is displayed

Now bmp1's colours are screwed up and bmp2's colours are fine..

I've tried many things to fix this. I tried making a pallete for each
image. I tried it on another computer. I tried blitting them both to the
screen instead to the tmp bitmap. I tried many things and I did not get
any luck. Please guys I have to find out how to fix this. Any help would
be appretiated.

Thanks very much,

--
Regards,
Paul M.
paulm14 AT home DOT com


- Raw text -


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