src/video/x11/SDL_x11dga.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/video/x11/SDL_x11dga.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11dga.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -34,7 +34,7 @@
     1.4  int dga_event, dga_error = -1;
     1.5  
     1.6  void
     1.7 -X11_EnableDGAMouse (_THIS)
     1.8 +X11_EnableDGAMouse(_THIS)
     1.9  {
    1.10  #if SDL_VIDEO_DRIVER_X11_DGAMOUSE
    1.11      int dga_major, dga_minor;
    1.12 @@ -43,20 +43,20 @@
    1.13  
    1.14      /* Check configuration to see if we should use DGA mouse */
    1.15      use_dgamouse = 1;
    1.16 -    env_use_dgamouse = SDL_getenv ("SDL_VIDEO_X11_DGAMOUSE");
    1.17 +    env_use_dgamouse = SDL_getenv("SDL_VIDEO_X11_DGAMOUSE");
    1.18      if (env_use_dgamouse) {
    1.19 -        use_dgamouse = atoi (env_use_dgamouse);
    1.20 +        use_dgamouse = atoi(env_use_dgamouse);
    1.21      }
    1.22      /* Check for buggy X servers */
    1.23 -    if (use_dgamouse && BUGGY_XFREE86 ( ==, 4000)) {
    1.24 +    if (use_dgamouse && BUGGY_XFREE86( ==, 4000)) {
    1.25          use_dgamouse = 0;
    1.26      }
    1.27      /* Only use DGA mouse if the cursor is not showing (in relative mode) */
    1.28      if (use_dgamouse && local_X11 && !(using_dga & DGA_MOUSE) &&
    1.29 -        SDL_NAME (XF86DGAQueryExtension) (SDL_Display, &dga_event, &dga_error)
    1.30 -        && SDL_NAME (XF86DGAQueryVersion) (SDL_Display, &dga_major,
    1.31 -                                           &dga_minor)) {
    1.32 -        if (SDL_NAME (XF86DGADirectVideo)
    1.33 +        SDL_NAME(XF86DGAQueryExtension) (SDL_Display, &dga_event, &dga_error)
    1.34 +        && SDL_NAME(XF86DGAQueryVersion) (SDL_Display, &dga_major,
    1.35 +                                          &dga_minor)) {
    1.36 +        if (SDL_NAME(XF86DGADirectVideo)
    1.37              (SDL_Display, SDL_Screen, XF86DGADirectMouse)) {
    1.38              using_dga |= DGA_MOUSE;
    1.39          }
    1.40 @@ -66,27 +66,27 @@
    1.41  
    1.42  /* Argh.  Glide resets DGA mouse mode when it makes the context current! */
    1.43  void
    1.44 -X11_CheckDGAMouse (_THIS)
    1.45 +X11_CheckDGAMouse(_THIS)
    1.46  {
    1.47  #if SDL_VIDEO_DRIVER_X11_DGAMOUSE
    1.48      int flags;
    1.49  
    1.50      if (using_dga & DGA_MOUSE) {
    1.51 -        SDL_NAME (XF86DGAQueryDirectVideo) (SDL_Display, SDL_Screen, &flags);
    1.52 +        SDL_NAME(XF86DGAQueryDirectVideo) (SDL_Display, SDL_Screen, &flags);
    1.53          if (!(flags & XF86DGADirectMouse)) {
    1.54 -            SDL_NAME (XF86DGADirectVideo) (SDL_Display, SDL_Screen,
    1.55 -                                           XF86DGADirectMouse);
    1.56 +            SDL_NAME(XF86DGADirectVideo) (SDL_Display, SDL_Screen,
    1.57 +                                          XF86DGADirectMouse);
    1.58          }
    1.59      }
    1.60  #endif
    1.61  }
    1.62  
    1.63  void
    1.64 -X11_DisableDGAMouse (_THIS)
    1.65 +X11_DisableDGAMouse(_THIS)
    1.66  {
    1.67  #if SDL_VIDEO_DRIVER_X11_DGAMOUSE
    1.68      if (using_dga & DGA_MOUSE) {
    1.69 -        SDL_NAME (XF86DGADirectVideo) (SDL_Display, SDL_Screen, 0);
    1.70 +        SDL_NAME(XF86DGADirectVideo) (SDL_Display, SDL_Screen, 0);
    1.71          using_dga &= ~DGA_MOUSE;
    1.72      }
    1.73  #endif /* SDL_VIDEO_DRIVER_X11_DGAMOUSE */