Replaced a few single-line "//" comments.

This commit is contained in:
Ryan C. Gordon 2017-01-07 17:09:14 -05:00
parent e25f4e507d
commit 61a3ba303c
6 changed files with 8 additions and 9 deletions

View File

@ -434,7 +434,6 @@ CreateCaptureBuffer(_THIS, const DWORD bufsize, WAVEFORMATEX *wfmt)
LPDIRECTSOUNDCAPTURE capture = this->hidden->capture; LPDIRECTSOUNDCAPTURE capture = this->hidden->capture;
LPDIRECTSOUNDCAPTUREBUFFER *capturebuf = &this->hidden->capturebuf; LPDIRECTSOUNDCAPTUREBUFFER *capturebuf = &this->hidden->capturebuf;
DSCBUFFERDESC format; DSCBUFFERDESC format;
// DWORD junk, cursor;
HRESULT result; HRESULT result;
SDL_zero(format); SDL_zero(format);

View File

@ -506,7 +506,7 @@ SDL_Fcitx_UpdateTextRect(SDL_Rect *rect)
#endif #endif
if (cursor->x == -1 && cursor->y == -1 && cursor->w == 0 && cursor->h == 0) { if (cursor->x == -1 && cursor->y == -1 && cursor->w == 0 && cursor->h == 0) {
// move to bottom left /* move to bottom left */
int w = 0, h = 0; int w = 0, h = 0;
SDL_GetWindowSize(focused_win, &w, &h); SDL_GetWindowSize(focused_win, &w, &h);
cursor->x = 0; cursor->x = 0;

View File

@ -304,7 +304,7 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ
if (window && ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 0)) { if (window && ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 0)) {
int x_max = 0, y_max = 0; int x_max = 0, y_max = 0;
// !!! FIXME: shouldn't this be (window) instead of (mouse->focus)? /* !!! FIXME: shouldn't this be (window) instead of (mouse->focus)? */
SDL_GetWindowSize(mouse->focus, &x_max, &y_max); SDL_GetWindowSize(mouse->focus, &x_max, &y_max);
--x_max; --x_max;
--y_max; --y_max;

View File

@ -609,8 +609,8 @@ SDL_SYS_JoystickDetect(void)
} }
} }
// run this after the checks above so we don't set device->removed and delete the device before /* run this after the checks above so we don't set device->removed and delete the device before
// SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device */
while (CFRunLoopRunInMode(SDL_JOYSTICK_RUNLOOP_MODE,0,TRUE) == kCFRunLoopRunHandledSource) { while (CFRunLoopRunInMode(SDL_JOYSTICK_RUNLOOP_MODE,0,TRUE) == kCFRunLoopRunHandledSource) {
/* no-op. Pending callbacks will fire in CFRunLoopRunInMode(). */ /* no-op. Pending callbacks will fire in CFRunLoopRunInMode(). */
} }

View File

@ -331,7 +331,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
for(i = 0; i < item->naxes; i++) { for(i = 0; i < item->naxes; i++) {
if(item->axis[i] != gamepadState.axis[i]) { if(item->axis[i] != gamepadState.axis[i]) {
// do we need to do conversion? /* do we need to do conversion? */
SDL_PrivateJoystickAxis(item->joystick, i, SDL_PrivateJoystickAxis(item->joystick, i,
(Sint16) (32767.*gamepadState.axis[i])); (Sint16) (32767.*gamepadState.axis[i]));
} }

View File

@ -741,9 +741,9 @@ X11_InitModes(_THIS)
displaydata->visual = vinfo.visual; displaydata->visual = vinfo.visual;
displaydata->depth = vinfo.depth; displaydata->depth = vinfo.depth;
// We use the displaydata screen index here so that this works /* We use the displaydata screen index here so that this works
// for both the Xinerama case, where we get the overall DPI, for both the Xinerama case, where we get the overall DPI,
// and the regular X11 screen info case. and the regular X11 screen info case. */
displaydata->hdpi = (float)DisplayWidth(data->display, displaydata->screen) * 25.4f / displaydata->hdpi = (float)DisplayWidth(data->display, displaydata->screen) * 25.4f /
DisplayWidthMM(data->display, displaydata->screen); DisplayWidthMM(data->display, displaydata->screen);
displaydata->vdpi = (float)DisplayHeight(data->display, displaydata->screen) * 25.4f / displaydata->vdpi = (float)DisplayHeight(data->display, displaydata->screen) * 25.4f /