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
e32b25be
Commit
e32b25be
authored
Feb 28, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiling AltiVec blitters
parent
cde0d1bc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
SDL_cpuinfo.h
include/SDL_cpuinfo.h
+0
-2
SDL_blit_A.c
src/video/SDL_blit_A.c
+3
-2
SDL_blit_N.c
src/video/SDL_blit_N.c
+3
-2
No files found.
include/SDL_cpuinfo.h
View file @
e32b25be
...
@@ -45,9 +45,7 @@
...
@@ -45,9 +45,7 @@
#ifdef __ALTIVEC__
#ifdef __ALTIVEC__
#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
#include <altivec.h>
#include <altivec.h>
#undef vector
#undef pixel
#undef pixel
#undef bool
#endif
#endif
#endif
#endif
#ifdef __MMX__
#ifdef __MMX__
...
...
src/video/SDL_blit_A.c
View file @
e32b25be
...
@@ -499,10 +499,11 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
...
@@ -499,10 +499,11 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
*/
*/
/* ARGB */
/* ARGB */
const
static
struct
SDL_PixelFormat
default_pixel_format
=
{
const
static
struct
SDL_PixelFormat
default_pixel_format
=
{
NULL
,
0
,
0
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
16
,
8
,
0
,
24
,
16
,
8
,
0
,
24
,
0x00FF0000
,
0x0000FF00
,
0x000000FF
,
0xFF000000
0x00FF0000
,
0x0000FF00
,
0x000000FF
,
0xFF000000
,
0
,
NULL
};
};
if
(
!
srcfmt
)
{
if
(
!
srcfmt
)
{
srcfmt
=
&
default_pixel_format
;
srcfmt
=
&
default_pixel_format
;
...
...
src/video/SDL_blit_N.c
View file @
e32b25be
...
@@ -108,10 +108,11 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
...
@@ -108,10 +108,11 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
*/
*/
/* ARGB */
/* ARGB */
const
static
const
struct
SDL_PixelFormat
default_pixel_format
=
{
const
static
const
struct
SDL_PixelFormat
default_pixel_format
=
{
NULL
,
32
,
4
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
16
,
8
,
0
,
24
,
16
,
8
,
0
,
24
,
0x00FF0000
,
0x0000FF00
,
0x000000FF
,
0xFF000000
0x00FF0000
,
0x0000FF00
,
0x000000FF
,
0xFF000000
,
0
,
NULL
};
};
if
(
!
srcfmt
)
{
if
(
!
srcfmt
)
{
srcfmt
=
&
default_pixel_format
;
srcfmt
=
&
default_pixel_format
;
...
...
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