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
065e4e3f
Commit
065e4e3f
authored
Jan 25, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #1100
Test the video features with #if instead of #ifdef
parent
d5b9e967
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
5 deletions
+27
-5
SDL_config_macosx.h
include/SDL_config_macosx.h
+10
-0
SDL_config_windows.h
include/SDL_config_windows.h
+12
-0
SDL_cocoavideo.m
src/video/cocoa/SDL_cocoavideo.m
+1
-1
SDL_windowsvideo.c
src/video/windows/SDL_windowsvideo.c
+1
-1
SDL_windowswindow.c
src/video/windows/SDL_windowswindow.c
+1
-1
SDL_x11video.c
src/video/x11/SDL_x11video.c
+1
-1
SDL_x11window.c
src/video/x11/SDL_x11window.c
+1
-1
No files found.
include/SDL_config_macosx.h
View file @
065e4e3f
...
@@ -148,13 +148,23 @@
...
@@ -148,13 +148,23 @@
#define SDL_VIDEO_DRIVER_X11_XV 1
#define SDL_VIDEO_DRIVER_X11_XV 1
#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
#ifndef SDL_VIDEO_RENDER_OGL
#define SDL_VIDEO_RENDER_OGL 1
#define SDL_VIDEO_RENDER_OGL 1
#endif
#ifndef SDL_VIDEO_RENDER_X11
#define SDL_VIDEO_RENDER_X11 1
#define SDL_VIDEO_RENDER_X11 1
#endif
/* Enable OpenGL support */
/* Enable OpenGL support */
#ifndef SDL_VIDEO_OPENGL
#define SDL_VIDEO_OPENGL 1
#define SDL_VIDEO_OPENGL 1
#endif
#ifndef SDL_VIDEO_OPENGL_CGL
#define SDL_VIDEO_OPENGL_CGL 1
#define SDL_VIDEO_OPENGL_CGL 1
#endif
#ifndef SDL_VIDEO_OPENGL_GLX
#define SDL_VIDEO_OPENGL_GLX 1
#define SDL_VIDEO_OPENGL_GLX 1
#endif
/* Enable system power support */
/* Enable system power support */
#define SDL_POWER_MACOSX 1
#define SDL_POWER_MACOSX 1
...
...
include/SDL_config_windows.h
View file @
065e4e3f
...
@@ -179,18 +179,30 @@ typedef unsigned int uintptr_t;
...
@@ -179,18 +179,30 @@ typedef unsigned int uintptr_t;
#define SDL_VIDEO_DRIVER_WINDOWS 1
#define SDL_VIDEO_DRIVER_WINDOWS 1
#ifdef _WIN32_WCE
#ifdef _WIN32_WCE
#ifndef SDL_VIDEO_RENDER_GAPI
#define SDL_VIDEO_RENDER_GAPI 1
#define SDL_VIDEO_RENDER_GAPI 1
#endif
#else
#else
#ifndef SDL_VIDEO_RENDER_D3D
#define SDL_VIDEO_RENDER_D3D 1
#define SDL_VIDEO_RENDER_D3D 1
#endif
#endif
#endif
#ifndef SDL_VIDEO_RENDER_GDI
#define SDL_VIDEO_RENDER_GDI 1
#define SDL_VIDEO_RENDER_GDI 1
#endif
/* Enable OpenGL support */
/* Enable OpenGL support */
#ifndef _WIN32_WCE
#ifndef _WIN32_WCE
#ifndef SDL_VIDEO_OPENGL
#define SDL_VIDEO_OPENGL 1
#define SDL_VIDEO_OPENGL 1
#endif
#ifndef SDL_VIDEO_OPENGL_WGL
#define SDL_VIDEO_OPENGL_WGL 1
#define SDL_VIDEO_OPENGL_WGL 1
#endif
#ifndef SDL_VIDEO_RENDER_OGL
#define SDL_VIDEO_RENDER_OGL 1
#define SDL_VIDEO_RENDER_OGL 1
#endif
#endif
#endif
/* Enable system power support */
/* Enable system power support */
#define SDL_POWER_WINDOWS 1
#define SDL_POWER_WINDOWS 1
...
...
src/video/cocoa/SDL_cocoavideo.m
View file @
065e4e3f
...
@@ -98,7 +98,7 @@ Cocoa_CreateDevice(int devindex)
...
@@ -98,7 +98,7 @@ Cocoa_CreateDevice(int devindex)
device
->
shape_driver
.
SetWindowShape
=
Cocoa_SetWindowShape
;
device
->
shape_driver
.
SetWindowShape
=
Cocoa_SetWindowShape
;
device
->
shape_driver
.
ResizeWindowShape
=
Cocoa_ResizeWindowShape
;
device
->
shape_driver
.
ResizeWindowShape
=
Cocoa_ResizeWindowShape
;
#if
def
SDL_VIDEO_OPENGL_CGL
#if SDL_VIDEO_OPENGL_CGL
device
->
GL_LoadLibrary
=
Cocoa_GL_LoadLibrary
;
device
->
GL_LoadLibrary
=
Cocoa_GL_LoadLibrary
;
device
->
GL_GetProcAddress
=
Cocoa_GL_GetProcAddress
;
device
->
GL_GetProcAddress
=
Cocoa_GL_GetProcAddress
;
device
->
GL_UnloadLibrary
=
Cocoa_GL_UnloadLibrary
;
device
->
GL_UnloadLibrary
=
Cocoa_GL_UnloadLibrary
;
...
...
src/video/windows/SDL_windowsvideo.c
View file @
065e4e3f
...
@@ -197,7 +197,7 @@ WIN_CreateDevice(int devindex)
...
@@ -197,7 +197,7 @@ WIN_CreateDevice(int devindex)
device
->
shape_driver
.
SetWindowShape
=
Win32_SetWindowShape
;
device
->
shape_driver
.
SetWindowShape
=
Win32_SetWindowShape
;
device
->
shape_driver
.
ResizeWindowShape
=
Win32_ResizeWindowShape
;
device
->
shape_driver
.
ResizeWindowShape
=
Win32_ResizeWindowShape
;
#if
def
SDL_VIDEO_OPENGL_WGL
#if SDL_VIDEO_OPENGL_WGL
device
->
GL_LoadLibrary
=
WIN_GL_LoadLibrary
;
device
->
GL_LoadLibrary
=
WIN_GL_LoadLibrary
;
device
->
GL_GetProcAddress
=
WIN_GL_GetProcAddress
;
device
->
GL_GetProcAddress
=
WIN_GL_GetProcAddress
;
device
->
GL_UnloadLibrary
=
WIN_GL_UnloadLibrary
;
device
->
GL_UnloadLibrary
=
WIN_GL_UnloadLibrary
;
...
...
src/video/windows/SDL_windowswindow.c
View file @
065e4e3f
...
@@ -243,7 +243,7 @@ WIN_CreateWindow(_THIS, SDL_Window * window)
...
@@ -243,7 +243,7 @@ WIN_CreateWindow(_THIS, SDL_Window * window)
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
return
-
1
;
return
-
1
;
}
}
#if
def
SDL_VIDEO_OPENGL_WGL
#if SDL_VIDEO_OPENGL_WGL
if
(
window
->
flags
&
SDL_WINDOW_OPENGL
)
{
if
(
window
->
flags
&
SDL_WINDOW_OPENGL
)
{
if
(
WIN_GL_SetupWindow
(
_this
,
window
)
<
0
)
{
if
(
WIN_GL_SetupWindow
(
_this
,
window
)
<
0
)
{
WIN_DestroyWindow
(
_this
,
window
);
WIN_DestroyWindow
(
_this
,
window
);
...
...
src/video/x11/SDL_x11video.c
View file @
065e4e3f
...
@@ -209,7 +209,7 @@ X11_CreateDevice(int devindex)
...
@@ -209,7 +209,7 @@ X11_CreateDevice(int devindex)
device
->
shape_driver
.
CreateShaper
=
X11_CreateShaper
;
device
->
shape_driver
.
CreateShaper
=
X11_CreateShaper
;
device
->
shape_driver
.
SetWindowShape
=
X11_SetWindowShape
;
device
->
shape_driver
.
SetWindowShape
=
X11_SetWindowShape
;
device
->
shape_driver
.
ResizeWindowShape
=
X11_ResizeWindowShape
;
device
->
shape_driver
.
ResizeWindowShape
=
X11_ResizeWindowShape
;
#if
def
SDL_VIDEO_OPENGL_GLX
#if SDL_VIDEO_OPENGL_GLX
device
->
GL_LoadLibrary
=
X11_GL_LoadLibrary
;
device
->
GL_LoadLibrary
=
X11_GL_LoadLibrary
;
device
->
GL_GetProcAddress
=
X11_GL_GetProcAddress
;
device
->
GL_GetProcAddress
=
X11_GL_GetProcAddress
;
device
->
GL_UnloadLibrary
=
X11_GL_UnloadLibrary
;
device
->
GL_UnloadLibrary
=
X11_GL_UnloadLibrary
;
...
...
src/video/x11/SDL_x11window.c
View file @
065e4e3f
...
@@ -288,7 +288,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
...
@@ -288,7 +288,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
}
}
*/
*/
#endif
#endif
#if
def
SDL_VIDEO_OPENGL_GLX
#if SDL_VIDEO_OPENGL_GLX
if
(
window
->
flags
&
SDL_WINDOW_OPENGL
)
{
if
(
window
->
flags
&
SDL_WINDOW_OPENGL
)
{
XVisualInfo
*
vinfo
;
XVisualInfo
*
vinfo
;
...
...
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