Skip to content

Commit

Permalink
Replaced a few single-line "//" comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 7, 2017
1 parent e25f4e5 commit 61a3ba3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/audio/directsound/SDL_directsound.c
Expand Up @@ -434,7 +434,6 @@ CreateCaptureBuffer(_THIS, const DWORD bufsize, WAVEFORMATEX *wfmt)
LPDIRECTSOUNDCAPTURE capture = this->hidden->capture;
LPDIRECTSOUNDCAPTUREBUFFER *capturebuf = &this->hidden->capturebuf;
DSCBUFFERDESC format;
// DWORD junk, cursor;
HRESULT result;

SDL_zero(format);
Expand Down
2 changes: 1 addition & 1 deletion src/core/linux/SDL_fcitx.c
Expand Up @@ -506,7 +506,7 @@ SDL_Fcitx_UpdateTextRect(SDL_Rect *rect)
#endif

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;
SDL_GetWindowSize(focused_win, &w, &h);
cursor->x = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_mouse.c
Expand Up @@ -304,7 +304,7 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ
if (window && ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 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);
--x_max;
--y_max;
Expand Down
4 changes: 2 additions & 2 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -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
// SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device
/* 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 */
while (CFRunLoopRunInMode(SDL_JOYSTICK_RUNLOOP_MODE,0,TRUE) == kCFRunLoopRunHandledSource) {
/* no-op. Pending callbacks will fire in CFRunLoopRunInMode(). */
}
Expand Down
2 changes: 1 addition & 1 deletion src/joystick/emscripten/SDL_sysjoystick.c
Expand Up @@ -331,7 +331,7 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)

for(i = 0; i < item->naxes; 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,
(Sint16) (32767.*gamepadState.axis[i]));
}
Expand Down
6 changes: 3 additions & 3 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -741,9 +741,9 @@ X11_InitModes(_THIS)
displaydata->visual = vinfo.visual;
displaydata->depth = vinfo.depth;

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

0 comments on commit 61a3ba3

Please sign in to comment.