[SDL] showing bitmaps

hinko.kocevar at cetrtapot.si hinko.kocevar at cetrtapot.si
Thu Apr 3 04:49:14 PDT 2008


Hello,

I have a question for all you graphics programmers out there:

Situation:
Linux OS with framebuffer device - 320x240 8bpp. Console application (no
SDL yet:() tries to draw two bitmap images pixel by pixel to the
framebuffer. The final result is that colors on first image are corrupt,
when I write the colors from second image to the framebuffer palette.

Procedure:
read bmp1
set color palette from bmp1
draw bmp1
read bmp2
set color palette from bmp2
draw bmp2

How can one display several 8 bpp BMP images on screen so that they all
retain its correct colors?


Thank you,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si



More information about the SDL mailing list