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
978839d0
Commit
978839d0
authored
Feb 13, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the platform test for the new CPU feature functions.
parent
5fe61f6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
SDL_compat.c
src/SDL_compat.c
+6
-5
platform.c
test/automated/platform/platform.c
+3
-5
No files found.
src/SDL_compat.c
View file @
978839d0
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
static
SDL_Window
*
SDL_VideoWindow
=
NULL
;
static
SDL_Window
*
SDL_VideoWindow
=
NULL
;
static
SDL_Surface
*
SDL_WindowSurface
=
NULL
;
static
SDL_Surface
*
SDL_VideoSurface
=
NULL
;
static
SDL_Surface
*
SDL_VideoSurface
=
NULL
;
static
SDL_Surface
*
SDL_ShadowSurface
=
NULL
;
static
SDL_Surface
*
SDL_ShadowSurface
=
NULL
;
static
SDL_Surface
*
SDL_PublicSurface
=
NULL
;
static
SDL_Surface
*
SDL_PublicSurface
=
NULL
;
...
@@ -410,9 +411,9 @@ SDL_ResizeVideoMode(int width, int height, int bpp, Uint32 flags)
...
@@ -410,9 +411,9 @@ SDL_ResizeVideoMode(int width, int height, int bpp, Uint32 flags)
return
0
;
return
0
;
}
}
/*
Destroy the screen texture and recreate it
*/
/*
Get the surface for the window
*/
SDL_
Video
Surface
=
SDL_GetWindowSurface
(
SDL_VideoWindow
);
SDL_
Window
Surface
=
SDL_GetWindowSurface
(
SDL_VideoWindow
);
if
(
!
SDL_
Video
Surface
)
{
if
(
!
SDL_
Window
Surface
)
{
return
-
1
;
return
-
1
;
}
}
...
@@ -549,8 +550,8 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
...
@@ -549,8 +550,8 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
}
}
/* Create the screen surface */
/* Create the screen surface */
SDL_
Video
Surface
=
SDL_GetWindowSurface
(
SDL_VideoWindow
);
SDL_
Window
Surface
=
SDL_GetWindowSurface
(
SDL_VideoWindow
);
if
(
!
SDL_
Video
Surface
)
{
if
(
!
SDL_
Window
Surface
)
{
return
NULL
;
return
NULL
;
}
}
SDL_VideoSurface
->
flags
|=
surface_flags
;
SDL_VideoSurface
->
flags
|=
surface_flags
;
...
...
test/automated/platform/platform.c
View file @
978839d0
...
@@ -159,13 +159,11 @@ int test_platform (void)
...
@@ -159,13 +159,11 @@ int test_platform (void)
SDL_ATprintVerbose
(
1
,
"Available extensions:
\n
"
);
SDL_ATprintVerbose
(
1
,
"Available extensions:
\n
"
);
SDL_ATprintVerbose
(
1
,
" RDTSC %s
\n
"
,
SDL_HasRDTSC
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" RDTSC %s
\n
"
,
SDL_HasRDTSC
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" MMX %s
\n
"
,
SDL_HasMMX
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" MMX %s
\n
"
,
SDL_HasMMX
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" MMX Ext %s
\n
"
,
SDL_HasMMXExt
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" 3DNow %s
\n
"
,
SDL_Has3DNow
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" 3DNow Ext %s
\n
"
,
SDL_Has3DNowExt
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE %s
\n
"
,
SDL_HasSSE
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE %s
\n
"
,
SDL_HasSSE
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE2 %s
\n
"
,
SDL_HasSSE2
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE2 %s
\n
"
,
SDL_HasSSE2
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" AltiVec %s
\n
"
,
SDL_HasAltiVec
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE3 %s
\n
"
,
SDL_HasSSE3
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE4.1 %s
\n
"
,
SDL_HasSSE41
()
?
"detected"
:
"not detected"
);
SDL_ATprintVerbose
(
1
,
" SSE4.2 %s
\n
"
,
SDL_HasSSE42
()
?
"detected"
:
"not detected"
);
plat_testTypes
();
plat_testTypes
();
plat_testEndian
();
plat_testEndian
();
...
...
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