Replaced a few single-line "//" comments.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 07 Jan 2017 17:09:14 -0500
changeset 107804ea5472ed455
parent 10779 bdc808b931a5
child 10781 7c19d6525105
Replaced a few single-line "//" comments.
src/audio/directsound/SDL_directsound.c
src/core/linux/SDL_fcitx.c
src/events/SDL_mouse.c
src/joystick/darwin/SDL_sysjoystick.c
src/joystick/emscripten/SDL_sysjoystick.c
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/audio/directsound/SDL_directsound.c	Sat Jan 07 16:51:48 2017 -0800
     1.2 +++ b/src/audio/directsound/SDL_directsound.c	Sat Jan 07 17:09:14 2017 -0500
     1.3 @@ -434,7 +434,6 @@
     1.4      LPDIRECTSOUNDCAPTURE capture = this->hidden->capture;
     1.5      LPDIRECTSOUNDCAPTUREBUFFER *capturebuf = &this->hidden->capturebuf;
     1.6      DSCBUFFERDESC format;
     1.7 -//    DWORD junk, cursor;
     1.8      HRESULT result;
     1.9  
    1.10      SDL_zero(format);
     2.1 --- a/src/core/linux/SDL_fcitx.c	Sat Jan 07 16:51:48 2017 -0800
     2.2 +++ b/src/core/linux/SDL_fcitx.c	Sat Jan 07 17:09:14 2017 -0500
     2.3 @@ -506,7 +506,7 @@
     2.4  #endif
     2.5  
     2.6      if (cursor->x == -1 && cursor->y == -1 && cursor->w == 0 && cursor->h == 0) {
     2.7 -        // move to bottom left
     2.8 +        /* move to bottom left */
     2.9          int w = 0, h = 0;
    2.10          SDL_GetWindowSize(focused_win, &w, &h);
    2.11          cursor->x = 0;
     3.1 --- a/src/events/SDL_mouse.c	Sat Jan 07 16:51:48 2017 -0800
     3.2 +++ b/src/events/SDL_mouse.c	Sat Jan 07 17:09:14 2017 -0500
     3.3 @@ -304,7 +304,7 @@
     3.4      if (window && ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 0)) {
     3.5          int x_max = 0, y_max = 0;
     3.6  
     3.7 -        // !!! FIXME: shouldn't this be (window) instead of (mouse->focus)?
     3.8 +        /* !!! FIXME: shouldn't this be (window) instead of (mouse->focus)? */
     3.9          SDL_GetWindowSize(mouse->focus, &x_max, &y_max);
    3.10          --x_max;
    3.11          --y_max;
     4.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Sat Jan 07 16:51:48 2017 -0800
     4.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Sat Jan 07 17:09:14 2017 -0500
     4.3 @@ -609,8 +609,8 @@
     4.4          }
     4.5      }
     4.6  
     4.7 -	// run this after the checks above so we don't set device->removed and delete the device before
     4.8 -	// SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device
     4.9 +	/* run this after the checks above so we don't set device->removed and delete the device before
    4.10 +	   SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device */
    4.11  	while (CFRunLoopRunInMode(SDL_JOYSTICK_RUNLOOP_MODE,0,TRUE) == kCFRunLoopRunHandledSource) {
    4.12  		/* no-op. Pending callbacks will fire in CFRunLoopRunInMode(). */
    4.13  	}
     5.1 --- a/src/joystick/emscripten/SDL_sysjoystick.c	Sat Jan 07 16:51:48 2017 -0800
     5.2 +++ b/src/joystick/emscripten/SDL_sysjoystick.c	Sat Jan 07 17:09:14 2017 -0500
     5.3 @@ -331,7 +331,7 @@
     5.4  
     5.5                  for(i = 0; i < item->naxes; i++) {
     5.6                      if(item->axis[i] != gamepadState.axis[i]) {
     5.7 -                        // do we need to do conversion?
     5.8 +                        /* do we need to do conversion? */
     5.9                          SDL_PrivateJoystickAxis(item->joystick, i,
    5.10                                                    (Sint16) (32767.*gamepadState.axis[i]));
    5.11                      }
     6.1 --- a/src/video/x11/SDL_x11modes.c	Sat Jan 07 16:51:48 2017 -0800
     6.2 +++ b/src/video/x11/SDL_x11modes.c	Sat Jan 07 17:09:14 2017 -0500
     6.3 @@ -741,9 +741,9 @@
     6.4          displaydata->visual = vinfo.visual;
     6.5          displaydata->depth = vinfo.depth;
     6.6  
     6.7 -        // We use the displaydata screen index here so that this works
     6.8 -        // for both the Xinerama case, where we get the overall DPI,
     6.9 -        // and the regular X11 screen info case.
    6.10 +        /* We use the displaydata screen index here so that this works
    6.11 +           for both the Xinerama case, where we get the overall DPI,
    6.12 +           and the regular X11 screen info case. */
    6.13          displaydata->hdpi = (float)DisplayWidth(data->display, displaydata->screen) * 25.4f /
    6.14              DisplayWidthMM(data->display, displaydata->screen);
    6.15          displaydata->vdpi = (float)DisplayHeight(data->display, displaydata->screen) * 25.4f /