Cleaned out a few C++ single-line comments.

Should we bother doing this anymore? Is there really a C compiler we care
 about that doesn't support this?
This commit is contained in:
Ryan C. Gordon 2013-01-21 02:50:11 -05:00
parent 09cbdb12c9
commit d41de59fc9
6 changed files with 20 additions and 15 deletions

View file

@ -42,7 +42,7 @@
#include <stdio.h>
#ifdef SDL_INPUT_LINUXEV
//Touch Input/event* includes
/* Touch Input/event* includes */
#include <linux/input.h>
#include <fcntl.h>
#endif

View file

@ -50,11 +50,11 @@ static const char g_MessageBoxFontLatin1[] = "-*-*-medium-r-normal--0-120-*-*-p-
static const char g_MessageBoxFont[] = "-*-*-*-*-*-*-*-*-*-*-*-*-*-*";
static const SDL_MessageBoxColor g_default_colors[ SDL_MESSAGEBOX_COLOR_MAX ] = {
{ 56, 54, 53 }, // SDL_MESSAGEBOX_COLOR_BACKGROUND,
{ 209, 207, 205 }, // SDL_MESSAGEBOX_COLOR_TEXT,
{ 140, 135, 129 }, // SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,
{ 105, 102, 99 }, // SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
{ 205, 202, 53 }, // SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,
{ 56, 54, 53 }, /* SDL_MESSAGEBOX_COLOR_BACKGROUND, */
{ 209, 207, 205 }, /* SDL_MESSAGEBOX_COLOR_TEXT, */
{ 140, 135, 129 }, /* SDL_MESSAGEBOX_COLOR_BUTTON_BORDER, */
{ 105, 102, 99 }, /* SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND, */
{ 205, 202, 53 }, /* SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED, */
};
#define SDL_MAKE_RGB( _r, _g, _b ) ( ( ( Uint32 )( _r ) << 16 ) | \

View file

@ -230,8 +230,8 @@ X11_CreateSystemCursor(SDL_SystemCursor id)
default:
SDL_assert(0);
return NULL;
// X Font Cursors reference:
// http://tronche.com/gui/x/xlib/appendix/b/
/* X Font Cursors reference:
http://tronche.com/gui/x/xlib/appendix/b/ */
case SDL_SYSTEM_CURSOR_ARROW: shape = XC_arrow; break;
case SDL_SYSTEM_CURSOR_IBEAM: shape = XC_xterm; break;
case SDL_SYSTEM_CURSOR_WAIT: shape = XC_watch; break;

View file

@ -460,8 +460,8 @@ X11_GL_GetAttributes(_THIS, Display * display, int screen, int * attribs, int si
GLX_SLOW_VISUAL_EXT;
}
// If we're supposed to use DirectColor visuals, and we've got the EXT_visual_info
// extension, then add GLX_X_VISUAL_TYPE_EXT.
/* If we're supposed to use DirectColor visuals, and we've got the
EXT_visual_info extension, then add GLX_X_VISUAL_TYPE_EXT. */
if (X11_UseDirectColorVisuals() &&
_this->gl_data->HAS_GLX_EXT_visual_info) {
attribs[i++] = GLX_X_VISUAL_TYPE_EXT;

View file

@ -355,8 +355,10 @@ X11_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
{
int retval;
// SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
// Display *display = data->videodata->display;
/*
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
Display *display = data->videodata->display;
*/
if (!_this->gles_data) {
SDL_SetError("OpenGL not initialized");
@ -371,7 +373,10 @@ X11_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
SDL_SetError("Unable to make EGL context current");
retval = -1;
}
// XSync(display, False);
/*
XSync(display, False);
*/
return (retval);
}

View file

@ -293,8 +293,8 @@ X11_CreateDevice(int devindex)
return NULL;
}
// Need for threading gl calls. This is also required for the proprietary nVidia
// driver to be threaded.
/* Need for threading gl calls. This is also required for the proprietary
nVidia driver to be threaded. */
XInitThreads();
/* Initialize all variables that we clean on shutdown */