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
5f55b90c
Commit
5f55b90c
authored
Mar 09, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed linking x64 with Visual Studio 2010.
parent
57a49884
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
3 deletions
+41
-3
SDL_touch.c
src/events/SDL_touch.c
+1
-1
SDL_stdlib.c
src/stdlib/SDL_stdlib.c
+38
-1
SDL_windowskeyboard.c
src/video/windows/SDL_windowskeyboard.c
+2
-1
No files found.
src/events/SDL_touch.c
View file @
5f55b90c
...
...
@@ -123,7 +123,7 @@ SDL_AddTouch(const SDL_Touch * touch, char *name)
SDL_OutOfMemory
();
return
-
1
;
}
*
SDL_touchPads
[
index
]
=
*
touch
;
SDL_memcpy
(
SDL_touchPads
[
index
],
touch
,
sizeof
(
*
touch
))
;
/* we're setting the touch properties */
length
=
0
;
...
...
src/stdlib/SDL_stdlib.c
100644 → 100755
View file @
5f55b90c
...
...
@@ -35,6 +35,43 @@
__declspec
(
selectany
)
int
_fltused
=
1
;
#endif
/* The optimizer on Visual Studio 2010 generates memcpy() calls */
#if _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG)
#include <intrin.h>
#pragma function(memcpy)
void
*
memcpy
(
void
*
destination
,
const
void
*
source
,
size_t
num
)
{
const
Uint8
*
src
=
(
const
Uint8
*
)
source
;
Uint8
*
dst
=
(
Uint8
*
)
destination
;
size_t
i
;
/* All WIN64 architectures have SSE, right? */
if
(
!
((
uintptr_t
)
src
&
15
)
&&
!
((
uintptr_t
)
dst
&
15
))
{
__m128
values
[
4
];
for
(
i
=
num
/
64
;
i
--
;)
{
_mm_prefetch
(
src
,
_MM_HINT_NTA
);
values
[
0
]
=
*
(
__m128
*
)
(
src
+
0
);
values
[
1
]
=
*
(
__m128
*
)
(
src
+
16
);
values
[
2
]
=
*
(
__m128
*
)
(
src
+
32
);
values
[
3
]
=
*
(
__m128
*
)
(
src
+
48
);
_mm_stream_ps
((
float
*
)
(
dst
+
0
),
values
[
0
]);
_mm_stream_ps
((
float
*
)
(
dst
+
16
),
values
[
1
]);
_mm_stream_ps
((
float
*
)
(
dst
+
32
),
values
[
2
]);
_mm_stream_ps
((
float
*
)
(
dst
+
48
),
values
[
3
]);
src
+=
64
;
dst
+=
64
;
}
num
&=
63
;
}
while
(
num
--
)
{
*
dst
++
=
*
src
++
;
}
return
destination
;
}
#endif
/* _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG) */
#ifdef _M_IX86
void
...
...
@@ -697,7 +734,7 @@ RETZERO:
/* *INDENT-ON* */
}
#endif
/* _
WIN64
*/
#endif
/* _
M_IX86
*/
#endif
/* MSC_VER */
...
...
src/video/windows/SDL_windowskeyboard.c
View file @
5f55b90c
...
...
@@ -1247,10 +1247,11 @@ UILess_ReleaseSinks(SDL_VideoData *videodata)
static
void
*
StartDrawToBitmap
(
HDC
hdc
,
HBITMAP
*
hhbm
,
int
width
,
int
height
)
{
BITMAPINFO
info
=
{
0
}
;
BITMAPINFO
info
;
BITMAPINFOHEADER
*
infoHeader
=
&
info
.
bmiHeader
;
BYTE
*
bits
=
NULL
;
if
(
hhbm
)
{
SDL_zero
(
info
);
infoHeader
->
biSize
=
sizeof
(
BITMAPINFOHEADER
);
infoHeader
->
biWidth
=
width
;
infoHeader
->
biHeight
=
-
1
*
SDL_abs
(
height
);
...
...
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