Fixed compiling on Windows
This commit is contained in:
parent
9560b718a2
commit
b26aaee0f2
7 changed files with 6 additions and 40 deletions
|
@ -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 @@
|
||||||
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"
|
||||||
>
|
>
|
||||||
|
|
|
@ -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
|
||||||
<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
|
||||||
<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" />
|
||||||
|
|
|
@ -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 @@
|
||||||
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 @@
|
||||||
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"
|
||||||
>
|
>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
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 *
|
||||||
SDL_GetWindowFromID(Uint32 id)
|
SDL_GetWindowFromID(Uint32 id)
|
||||||
{
|
{
|
||||||
SDL_Window *window;
|
SDL_Window *window;
|
||||||
int i;
|
|
||||||
|
|
||||||
if (!_this) {
|
if (!_this) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
4
src/video/windows/SDL_windowsmodes.c
Normal file → Executable file
4
src/video/windows/SDL_windowsmodes.c
Normal file → Executable file
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue