[SDL] SDL_OPENGLBLIT + SDL_SetColorKey()

Fabio 'SnowDruid' Franchello snowdruid at libero.it
Mon Aug 20 08:48:00 PDT 2001


At 15.30 20/08/01 +0200, you wrote:
>OK, can you please dump all information about the source and destination
>formats just before the call to BlitSurface? (just print out everything
>in Logo->format and Screen->format, directly or using gdb)
>
>Also try using DisplayFormat to convert the Logo to the screen format.
>This should not be necessary, but may be a workaround for now

Using SDL_DisplayFormat() does not fix the problem. Here's the formats
WITHOUT using SDL_DisplayFormat():

Screen:
palette: NULL
BitsPerPixel: 32
BytesPerPixel: 4
Rmask: 255
Gmask: 65280
Bmask: 16711680
Amask: -16777216
Rshift: 0
Gshift: 8
Bshift: 16
Ashift: 24
Rloss: 0
Gloss: 0
Bloss: 0
Aloss: 0
colorkey: 0
alpha: 255

Logo:
palette: NULL
BitsPerPixel: 32
BytesPerPixel: 4
Rmask: 255
Gmask: 65280
Bmask: 16711680
Amask: -16777216
Rshift: 0
Gshift: 8
Bshift: 16
Ashift: 24
Rloss: 0
Gloss: 0
Bloss: 0
Aloss: 0
colorkey: -16777216
alpha: 255

And here's the formats using SDL_DisplayFormat() (which are obviously the 
same):

Screen:
palette: NULL
BitsPerPixel: 32
BytesPerPixel: 4
Rmask: 255
Gmask: 65280
Bmask: 16711680
Amask: -16777216
Rshift: 0
Gshift: 8
Bshift: 16
Ashift: 24
Rloss: 0
Gloss: 0
Bloss: 0
Aloss: 0
colorkey: 0
alpha: 255

Logo:
palette: NULL
BitsPerPixel: 32
BytesPerPixel: 4
Rmask: 255
Gmask: 65280
Bmask: 16711680
Amask: -16777216
Rshift: 0
Gshift: 8
Bshift: 16
Ashift: 24
Rloss: 0
Gloss: 0
Bloss: 0
Aloss: 0
colorkey: -16777216
alpha: 255

Thanks,


          __
Fabio " '- nowDruid " Franchello
        ---'---------
--- snowdruid at tiscalinet.it ---





More information about the SDL mailing list