Commit b2ad2a40 authored by Sam Lantinga's avatar Sam Lantinga

Fixed up structure to match header, added missing Aloss

parent 4c1a08f1
...@@ -610,17 +610,19 @@ SDL_RLEBlit(SDL_Surface * src, SDL_Rect * srcrect, ...@@ -610,17 +610,19 @@ SDL_RLEBlit(SDL_Surface * src, SDL_Rect * srcrect,
typedef struct typedef struct
{ {
Uint8 BytesPerPixel; Uint8 BytesPerPixel;
Uint8 padding[3];
Uint32 Rmask;
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
Uint8 Rloss; Uint8 Rloss;
Uint8 Gloss; Uint8 Gloss;
Uint8 Bloss; Uint8 Bloss;
Uint8 Aloss;
Uint8 Rshift; Uint8 Rshift;
Uint8 Gshift; Uint8 Gshift;
Uint8 Bshift; Uint8 Bshift;
Uint8 Ashift; Uint8 Ashift;
Uint32 Rmask;
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
} RLEDestFormat; } RLEDestFormat;
/* blit a pixel-alpha RLE surface clipped at the right and/or left edges */ /* blit a pixel-alpha RLE surface clipped at the right and/or left edges */
...@@ -1097,17 +1099,18 @@ RLEAlphaSurface(SDL_Surface * surface) ...@@ -1097,17 +1099,18 @@ RLEAlphaSurface(SDL_Surface * surface)
/* save the destination format so we can undo the encoding later */ /* save the destination format so we can undo the encoding later */
RLEDestFormat *r = (RLEDestFormat *) rlebuf; RLEDestFormat *r = (RLEDestFormat *) rlebuf;
r->BytesPerPixel = df->BytesPerPixel; r->BytesPerPixel = df->BytesPerPixel;
r->Rmask = df->Rmask;
r->Gmask = df->Gmask;
r->Bmask = df->Bmask;
r->Amask = df->Amask;
r->Rloss = df->Rloss; r->Rloss = df->Rloss;
r->Gloss = df->Gloss; r->Gloss = df->Gloss;
r->Bloss = df->Bloss; r->Bloss = df->Bloss;
r->Aloss = df->Aloss;
r->Rshift = df->Rshift; r->Rshift = df->Rshift;
r->Gshift = df->Gshift; r->Gshift = df->Gshift;
r->Bshift = df->Bshift; r->Bshift = df->Bshift;
r->Ashift = df->Ashift; r->Ashift = df->Ashift;
r->Rmask = df->Rmask;
r->Gmask = df->Gmask;
r->Bmask = df->Bmask;
r->Amask = df->Amask;
} }
dst = rlebuf + sizeof(RLEDestFormat); dst = rlebuf + sizeof(RLEDestFormat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment