Mail Archives: djgpp/2001/06/10/13:30:04
Message-ID: | <3B23A619.549A245D@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: | Allegro Bitmap Colour Problem
|
Lines: | 36
|
Date: | Sun, 10 Jun 2001 17:00:02 GMT
|
NNTP-Posting-Host: | 24.112.60.10
|
X-Complaints-To: | abuse AT home DOT net
|
X-Trace: | news4.rdc1.on.home.com 992192402 24.112.60.10 (Sun, 10 Jun 2001 10:00:02 PDT)
|
NNTP-Posting-Date: | Sun, 10 Jun 2001 10:00:02 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
|
Im very frustrated I cant fix this 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 separate pallete
for each
image, I tried it on another computer, I tried blitting them both to the
screen instead to the tmp bitmap, and many other things. 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 -