Mail Archives: djgpp/2000/01/06/22:19:50
From: | "Todorovic" <todorus AT eunet DOT yu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: allegro hi and trucolor slow???
|
Date: | Fri, 7 Jan 2000 00:47:09 +0100
|
Organization: | Public news server of EUnet Yugoslavia
|
Lines: | 21
|
Message-ID: | <853d04$cbh$5@SOLAIR2.EUnet.yu>
|
References: | <84tjb5$pms$1 AT planja DOT arnes DOT si>
|
NNTP-Posting-Host: | p-4.53.eunet.yu
|
X-Trace: | SOLAIR2.EUnet.yu 947205956 12657 213.240.4.53 (7 Jan 2000 00:45:56 GMT)
|
X-Complaints-To: | abuse AT EUnet DOT yu
|
NNTP-Posting-Date: | 7 Jan 2000 00:45:56 GMT
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
> I'm now in 24 bit graphics mode. Why do I have to specify a palette when
> loading a .pcx file if palettes aren't used in hi or trucolor modes? Also,
Every .pcx file contains in its header RGB for the first 16 colors, and it
is read into your palette. 8-bit .pcx files also contain whole palette it
uses. If your .pcx is 24-bit, your palette will be set to 3.3.2
(generate_332_palette) which is used when you load 24-bit .pcx in 8-bit
graphic mode. You can change load_pcx (in alegro/src/pcx.c) by adding few
'if (_color_depth != 8) ...;', so you can just say 'bmp =
load_bitmap("pic.pcx", NULL);' when you want to load 24-bit .pcx. Or you can
copy/paste it, make load_pcx_24, and make those changes.
> if I am in 24 bit mode (or 16bit, or 32bit) every image loads so slowly...
> what's the problem (I have a 12mb video memory...)???
???? Don't know that.
Alexa
- Raw text -