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
2bea0e63
Commit
2bea0e63
authored
Mar 07, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We explicitly don't know how to handle 1 and 4 bpp pixel formats.
parent
2d5640cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
SDL_pixels.c
src/video/SDL_pixels.c
+4
-0
No files found.
src/video/SDL_pixels.c
View file @
2bea0e63
...
@@ -241,6 +241,10 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
...
@@ -241,6 +241,10 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
Uint32
Amask
)
Uint32
Amask
)
{
{
switch
(
bpp
)
{
switch
(
bpp
)
{
case
1
:
case
4
:
/* Can't tell if this is LSB or MSB bitmap ordering... */
break
;
case
8
:
case
8
:
if
(
Rmask
==
0
)
{
if
(
Rmask
==
0
)
{
return
SDL_PIXELFORMAT_INDEX8
;
return
SDL_PIXELFORMAT_INDEX8
;
...
...
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