src/video/xbios/SDL_xbios_centscreen.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/video/xbios/SDL_xbios_centscreen.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/video/xbios/SDL_xbios_centscreen.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -33,7 +33,7 @@
     1.4  #include "SDL_xbios_centscreen.h"
     1.5  
     1.6  int
     1.7 -SDL_XBIOS_CentscreenInit (_THIS)
     1.8 +SDL_XBIOS_CentscreenInit(_THIS)
     1.9  {
    1.10      centscreen_mode_t curmode, listedmode;
    1.11      unsigned long result;
    1.12 @@ -41,44 +41,44 @@
    1.13  
    1.14      /* Reset current mode list */
    1.15      if (XBIOS_modelist) {
    1.16 -        SDL_free (XBIOS_modelist);
    1.17 +        SDL_free(XBIOS_modelist);
    1.18          XBIOS_nummodes = 0;
    1.19          XBIOS_modelist = NULL;
    1.20      }
    1.21  
    1.22      /* Add Centscreen modes */
    1.23 -    Vread (&curmode);
    1.24 +    Vread(&curmode);
    1.25      cur_handle = curmode.handle;
    1.26      curmode.mode = curmode.physx = curmode.physy = curmode.plan =
    1.27          curmode.logx = curmode.logy = -1;
    1.28  
    1.29 -    result = Vfirst (&curmode, &listedmode);
    1.30 +    result = Vfirst(&curmode, &listedmode);
    1.31      if (result == 0) {
    1.32          while (result == 0) {
    1.33              /* Don't add modes with virtual screen */
    1.34              if ((listedmode.mode & CSCREEN_VIRTUAL) == 0) {
    1.35                  /* Don't add modes with bpp<8 */
    1.36                  if (listedmode.plan >= 8) {
    1.37 -                    SDL_XBIOS_AddMode (this, listedmode.mode,
    1.38 -                                       listedmode.physx,
    1.39 -                                       listedmode.physy,
    1.40 -                                       listedmode.plan, SDL_FALSE);
    1.41 +                    SDL_XBIOS_AddMode(this, listedmode.mode,
    1.42 +                                      listedmode.physx,
    1.43 +                                      listedmode.physy,
    1.44 +                                      listedmode.plan, SDL_FALSE);
    1.45                  }
    1.46              }
    1.47 -            SDL_memcpy (&curmode, &listedmode, sizeof (centscreen_mode_t));
    1.48 +            SDL_memcpy(&curmode, &listedmode, sizeof(centscreen_mode_t));
    1.49              curmode.mode = curmode.physx = curmode.physy = curmode.plan =
    1.50                  curmode.logx = curmode.logy = -1;
    1.51 -            result = Vnext (&curmode, &listedmode);
    1.52 +            result = Vnext(&curmode, &listedmode);
    1.53          }
    1.54      } else {
    1.55 -        fprintf (stderr, "No suitable Centscreen modes\n");
    1.56 +        fprintf(stderr, "No suitable Centscreen modes\n");
    1.57      }
    1.58  
    1.59      return cur_handle;
    1.60  }
    1.61  
    1.62  void
    1.63 -SDL_XBIOS_CentscreenSetmode (_THIS, int width, int height, int planes)
    1.64 +SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
    1.65  {
    1.66      centscreen_mode_t newmode, curmode;
    1.67  
    1.68 @@ -86,16 +86,16 @@
    1.69      newmode.physx = width;
    1.70      newmode.physy = height;
    1.71      newmode.plan = planes;
    1.72 -    Vwrite (0, &newmode, &curmode);
    1.73 +    Vwrite(0, &newmode, &curmode);
    1.74  
    1.75      /* Disable screensaver */
    1.76 -    Vread (&newmode);
    1.77 +    Vread(&newmode);
    1.78      newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR);
    1.79 -    Vwrite (0, &newmode, &curmode);
    1.80 +    Vwrite(0, &newmode, &curmode);
    1.81  }
    1.82  
    1.83  void
    1.84 -SDL_XBIOS_CentscreenRestore (_THIS, int prev_handle)
    1.85 +SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
    1.86  {
    1.87      centscreen_mode_t newmode, curmode;
    1.88  
    1.89 @@ -103,7 +103,7 @@
    1.90      newmode.handle = prev_handle;
    1.91      newmode.mode = newmode.physx = newmode.physy = newmode.plan =
    1.92          newmode.logx = newmode.logy = -1;
    1.93 -    Vwrite (0, &newmode, &curmode);
    1.94 +    Vwrite(0, &newmode, &curmode);
    1.95  }
    1.96  
    1.97  /* vi: set ts=4 sw=4 expandtab: */