Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
b2ad2a40
Commit
b2ad2a40
authored
Mar 07, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up structure to match header, added missing Aloss
parent
4c1a08f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
SDL_RLEaccel.c
src/video/SDL_RLEaccel.c
+11
-8
No files found.
src/video/SDL_RLEaccel.c
View file @
b2ad2a40
...
...
@@ -610,17 +610,19 @@ SDL_RLEBlit(SDL_Surface * src, SDL_Rect * srcrect,
typedef
struct
{
Uint8
BytesPerPixel
;
Uint8
padding
[
3
];
Uint32
Rmask
;
Uint32
Gmask
;
Uint32
Bmask
;
Uint32
Amask
;
Uint8
Rloss
;
Uint8
Gloss
;
Uint8
Bloss
;
Uint8
Aloss
;
Uint8
Rshift
;
Uint8
Gshift
;
Uint8
Bshift
;
Uint8
Ashift
;
Uint32
Rmask
;
Uint32
Gmask
;
Uint32
Bmask
;
Uint32
Amask
;
}
RLEDestFormat
;
/* blit a pixel-alpha RLE surface clipped at the right and/or left edges */
...
...
@@ -1097,17 +1099,18 @@ RLEAlphaSurface(SDL_Surface * surface)
/* save the destination format so we can undo the encoding later */
RLEDestFormat
*
r
=
(
RLEDestFormat
*
)
rlebuf
;
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
->
Gloss
=
df
->
Gloss
;
r
->
Bloss
=
df
->
Bloss
;
r
->
Aloss
=
df
->
Aloss
;
r
->
Rshift
=
df
->
Rshift
;
r
->
Gshift
=
df
->
Gshift
;
r
->
Bshift
=
df
->
Bshift
;
r
->
Ashift
=
df
->
Ashift
;
r
->
Rmask
=
df
->
Rmask
;
r
->
Gmask
=
df
->
Gmask
;
r
->
Bmask
=
df
->
Bmask
;
r
->
Amask
=
df
->
Amask
;
}
dst
=
rlebuf
+
sizeof
(
RLEDestFormat
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment