Message-ID: <37D6C6F0.682D33AA@swipnet.se> From: Anders David Skarin X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Does Allegro BLIT really convert between colordepths Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit Lines: 36 NNTP-Posting-Host: 130.244.93.52 X-Complaints-To: news-abuse AT swip DOT net X-Trace: nntpserver.swip.net 936822706 130.244.93.52 (Wed, 08 Sep 1999 22:31:46 MET DST) NNTP-Posting-Date: Wed, 08 Sep 1999 22:31:46 MET DST Organization: A Customer of Tele2 X-Sender: s-437261 AT dialup93-1-52 DOT swipnet DOT se Date: Wed, 08 Sep 1999 22:28:33 +0200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Since vesa programming using DJGPP+NASM seems to be such a struggle that even this newsgroup can answere my questions, I have decided to let my "do it all" attitude go and give in to the dark force... ALLEGRO. There is one small thing i can't get over though... blit will not (as the manual sas) convert between differnt colordepths. Since my VESA routines used 32bit internaly, this is what I wanted to do with ALLEGRO as well. But this code will produce a GREEN screen rather than an ORANGE. int main(void) { allegro_init(); BITMAP *test = create_bitmap_ex(32,320,240); destroy_bitmap(test); set_color_depth(16); if(set_gfx_mode(GFX_VESA2L,320,240,0,0)!=0)printf("sorry\n"); for(int y =0; y<240; y++) for(int x =0; x<320; x++) putpixel(test,x,y,0x00FF5500); blit(test,screen,0,0,0,0,320,240); getch(); allegro_exit(); return 0; }; Any suggestions?