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
b26aaee0
Commit
b26aaee0
authored
Feb 11, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiling on Windows
parent
9560b718
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
40 deletions
+6
-40
SDL_VS2008.vcproj
VisualC/SDL/SDL_VS2008.vcproj
+0
-12
SDL_VS2010.vcxproj
VisualC/SDL/SDL_VS2010.vcxproj
+0
-3
SDL.vcproj
VisualCE/SDL/SDL.vcproj
+0
-12
SDL_compat.c
src/SDL_compat.c
+1
-1
SDL_video.c
src/video/SDL_video.c
+0
-3
SDL_windowsclipboard.c
src/video/windows/SDL_windowsclipboard.c
+3
-7
SDL_windowsmodes.c
src/video/windows/SDL_windowsmodes.c
+2
-2
No files found.
VisualC/SDL/SDL_VS2008.vcproj
View file @
b26aaee0
...
@@ -866,10 +866,6 @@
...
@@ -866,10 +866,6 @@
RelativePath=
"..\..\src\video\SDL_fillrect.c"
RelativePath=
"..\..\src\video\SDL_fillrect.c"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\video\SDL_gamma.c"
>
</File>
<File
<File
RelativePath=
"..\..\src\events\SDL_gesture.c"
RelativePath=
"..\..\src\events\SDL_gesture.c"
>
>
...
@@ -1234,14 +1230,6 @@
...
@@ -1234,14 +1230,6 @@
RelativePath=
"..\..\src\video\windows\SDL_windowsframebuffer.h"
RelativePath=
"..\..\src\video\windows\SDL_windowsframebuffer.h"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\video\windows\SDL_windowsgamma.c"
>
</File>
<File
RelativePath=
"..\..\src\video\windows\SDL_windowsgamma.h"
>
</File>
<File
<File
RelativePath=
"..\..\src\video\windows\SDL_windowskeyboard.c"
RelativePath=
"..\..\src\video\windows\SDL_windowskeyboard.c"
>
>
...
...
VisualC/SDL/SDL_VS2010.vcxproj
View file @
b26aaee0
...
@@ -341,7 +341,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
...
@@ -341,7 +341,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsclipboard.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsclipboard.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsevents.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsevents.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsframebuffer.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsframebuffer.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsgamma.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowskeyboard.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowskeyboard.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsmodes.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsmodes.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsmouse.h"
/>
<ClInclude
Include=
"..\..\src\video\windows\SDL_windowsmouse.h"
/>
...
@@ -417,7 +416,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
...
@@ -417,7 +416,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
<ClCompile
Include=
"..\..\src\events\SDL_events.c"
/>
<ClCompile
Include=
"..\..\src\events\SDL_events.c"
/>
<ClCompile
Include=
"..\..\src\SDL_fatal.c"
/>
<ClCompile
Include=
"..\..\src\SDL_fatal.c"
/>
<ClCompile
Include=
"..\..\src\video\SDL_fillrect.c"
/>
<ClCompile
Include=
"..\..\src\video\SDL_fillrect.c"
/>
<ClCompile
Include=
"..\..\src\video\SDL_gamma.c"
/>
<ClCompile
Include=
"..\..\src\stdlib\SDL_getenv.c"
/>
<ClCompile
Include=
"..\..\src\stdlib\SDL_getenv.c"
/>
<ClCompile
Include=
"..\..\src\haptic\SDL_haptic.c"
/>
<ClCompile
Include=
"..\..\src\haptic\SDL_haptic.c"
/>
<ClCompile
Include=
"..\..\src\stdlib\SDL_iconv.c"
/>
<ClCompile
Include=
"..\..\src\stdlib\SDL_iconv.c"
/>
...
@@ -457,7 +455,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
...
@@ -457,7 +455,6 @@ echo #define SDL_REVISION "hg-0:baadf00d" >"$(ProjectDir)\..\..\include\SDL_r
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsclipboard.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsclipboard.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsevents.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsevents.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsframebuffer.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsframebuffer.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsgamma.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowskeyboard.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowskeyboard.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsmodes.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsmodes.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsmouse.c"
/>
<ClCompile
Include=
"..\..\src\video\windows\SDL_windowsmouse.c"
/>
...
...
VisualCE/SDL/SDL.vcproj
View file @
b26aaee0
...
@@ -861,10 +861,6 @@
...
@@ -861,10 +861,6 @@
RelativePath=
"..\..\src\video\SDL_fillrect.c"
RelativePath=
"..\..\src\video\SDL_fillrect.c"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\video\SDL_gamma.c"
>
</File>
<File
<File
RelativePath=
"..\..\src\events\SDL_gesture.c"
RelativePath=
"..\..\src\events\SDL_gesture.c"
>
>
...
@@ -1053,10 +1049,6 @@
...
@@ -1053,10 +1049,6 @@
RelativePath=
"..\..\src\video\windows\SDL_windowsframebuffer.c"
RelativePath=
"..\..\src\video\windows\SDL_windowsframebuffer.c"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\video\windows\SDL_windowsgamma.c"
>
</File>
<File
<File
RelativePath=
"..\..\src\video\windows\SDL_windowskeyboard.c"
RelativePath=
"..\..\src\video\windows\SDL_windowskeyboard.c"
>
>
...
@@ -1398,10 +1390,6 @@
...
@@ -1398,10 +1390,6 @@
RelativePath=
"..\..\src\video\windows\SDL_windowsframebuffer.h"
RelativePath=
"..\..\src\video\windows\SDL_windowsframebuffer.h"
>
>
</File>
</File>
<File
RelativePath=
"..\..\src\video\windows\SDL_windowsgamma.h"
>
</File>
<File
<File
RelativePath=
"..\..\src\video\windows\SDL_windowskeyboard.h"
RelativePath=
"..\..\src\video\windows\SDL_windowskeyboard.h"
>
>
...
...
src/SDL_compat.c
View file @
b26aaee0
...
@@ -79,7 +79,7 @@ GetVideoDisplay()
...
@@ -79,7 +79,7 @@ GetVideoDisplay()
variable
=
SDL_getenv
(
"SDL_VIDEO_FULLSCREEN_HEAD"
);
variable
=
SDL_getenv
(
"SDL_VIDEO_FULLSCREEN_HEAD"
);
}
}
if
(
variable
)
{
if
(
variable
)
{
SDL_atoi
(
variable
);
return
SDL_atoi
(
variable
);
}
else
{
}
else
{
return
0
;
return
0
;
}
}
...
...
src/video/SDL_video.c
View file @
b26aaee0
...
@@ -1004,7 +1004,6 @@ Uint32
...
@@ -1004,7 +1004,6 @@ Uint32
SDL_GetWindowPixelFormat
(
SDL_Window
*
window
)
SDL_GetWindowPixelFormat
(
SDL_Window
*
window
)
{
{
SDL_VideoDisplay
*
display
;
SDL_VideoDisplay
*
display
;
SDL_DisplayMode
*
displayMode
;
CHECK_WINDOW_MAGIC
(
window
,
SDL_PIXELFORMAT_UNKNOWN
);
CHECK_WINDOW_MAGIC
(
window
,
SDL_PIXELFORMAT_UNKNOWN
);
...
@@ -1097,7 +1096,6 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
...
@@ -1097,7 +1096,6 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
SDL_WINDOW_BORDERLESS
|
SDL_WINDOW_BORDERLESS
|
SDL_WINDOW_RESIZABLE
|
SDL_WINDOW_RESIZABLE
|
SDL_WINDOW_INPUT_GRABBED
);
SDL_WINDOW_INPUT_GRABBED
);
SDL_VideoDisplay
*
display
;
SDL_Window
*
window
;
SDL_Window
*
window
;
if
(
!
_this
)
{
if
(
!
_this
)
{
...
@@ -1269,7 +1267,6 @@ SDL_Window *
...
@@ -1269,7 +1267,6 @@ SDL_Window *
SDL_GetWindowFromID
(
Uint32
id
)
SDL_GetWindowFromID
(
Uint32
id
)
{
{
SDL_Window
*
window
;
SDL_Window
*
window
;
int
i
;
if
(
!
_this
)
{
if
(
!
_this
)
{
return
NULL
;
return
NULL
;
...
...
src/video/windows/SDL_windowsclipboard.c
View file @
b26aaee0
...
@@ -37,15 +37,11 @@
...
@@ -37,15 +37,11 @@
static
HWND
static
HWND
GetWindowHandle
(
_THIS
)
GetWindowHandle
(
_THIS
)
{
{
SDL_VideoDisplay
*
display
;
SDL_Window
*
window
;
SDL_Window
*
window
;
display
=
_this
->
displays
;
window
=
_this
->
windows
;
if
(
display
)
{
if
(
window
)
{
window
=
display
->
windows
;
return
((
SDL_WindowData
*
)
window
->
driverdata
)
->
hwnd
;
if
(
window
)
{
return
((
SDL_WindowData
*
)
window
->
driverdata
)
->
hwnd
;
}
}
}
return
NULL
;
return
NULL
;
}
}
...
...
src/video/windows/SDL_windowsmodes.c
100644 → 100755
View file @
b26aaee0
...
@@ -217,8 +217,8 @@ WIN_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
...
@@ -217,8 +217,8 @@ WIN_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
// WINCE: DEVMODE.dmPosition not found, or may be mingw32ce bug
// WINCE: DEVMODE.dmPosition not found, or may be mingw32ce bug
rect
->
x
=
0
;
rect
->
x
=
0
;
rect
->
y
=
0
;
rect
->
y
=
0
;
rect
->
w
=
display
->
windows
->
w
;
rect
->
w
=
_this
->
windows
->
w
;
rect
->
h
=
display
->
windows
->
h
;
rect
->
h
=
_this
->
windows
->
h
;
#else
#else
rect
->
x
=
(
int
)
data
->
DeviceMode
.
dmPosition
.
x
;
rect
->
x
=
(
int
)
data
->
DeviceMode
.
dmPosition
.
x
;
rect
->
y
=
(
int
)
data
->
DeviceMode
.
dmPosition
.
y
;
rect
->
y
=
(
int
)
data
->
DeviceMode
.
dmPosition
.
y
;
...
...
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