src/video/nanox/SDL_nxmodes.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/video/nanox/SDL_nxmodes.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/video/nanox/SDL_nxmodes.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -29,7 +29,7 @@
     1.4  #include "SDL_nxmodes_c.h"
     1.5  
     1.6  SDL_Rect **
     1.7 -NX_ListModes (_THIS, SDL_PixelFormat * format, Uint32 flags)
     1.8 +NX_ListModes(_THIS, SDL_PixelFormat * format, Uint32 flags)
     1.9  {
    1.10      if (flags & SDL_FULLSCREEN)
    1.11          return SDL_modelist;
    1.12 @@ -42,31 +42,31 @@
    1.13  }
    1.14  
    1.15  void
    1.16 -NX_FreeVideoModes (_THIS)
    1.17 +NX_FreeVideoModes(_THIS)
    1.18  {
    1.19      int i;
    1.20  
    1.21      if (SDL_modelist) {
    1.22          for (i = 0; SDL_modelist[i]; ++i) {
    1.23 -            SDL_free (SDL_modelist[i]);
    1.24 +            SDL_free(SDL_modelist[i]);
    1.25          }
    1.26 -        SDL_free (SDL_modelist);
    1.27 +        SDL_free(SDL_modelist);
    1.28          SDL_modelist = NULL;
    1.29      }
    1.30  }
    1.31  
    1.32  int
    1.33 -NX_EnterFullScreen (_THIS)
    1.34 +NX_EnterFullScreen(_THIS)
    1.35  {
    1.36      if (!currently_fullscreen) {
    1.37          GR_SCREEN_INFO si;
    1.38  
    1.39 -        GrGetScreenInfo (&si);
    1.40 -        GrResizeWindow (FSwindow, si.cols, si.rows);
    1.41 -        GrUnmapWindow (SDL_Window);
    1.42 -        GrMapWindow (FSwindow);
    1.43 -        GrRaiseWindow (FSwindow);
    1.44 -        GrSetFocus (FSwindow);
    1.45 +        GrGetScreenInfo(&si);
    1.46 +        GrResizeWindow(FSwindow, si.cols, si.rows);
    1.47 +        GrUnmapWindow(SDL_Window);
    1.48 +        GrMapWindow(FSwindow);
    1.49 +        GrRaiseWindow(FSwindow);
    1.50 +        GrSetFocus(FSwindow);
    1.51          currently_fullscreen = 1;
    1.52      }
    1.53  
    1.54 @@ -74,13 +74,13 @@
    1.55  }
    1.56  
    1.57  int
    1.58 -NX_LeaveFullScreen (_THIS)
    1.59 +NX_LeaveFullScreen(_THIS)
    1.60  {
    1.61      if (currently_fullscreen) {
    1.62 -        GrUnmapWindow (FSwindow);
    1.63 -        GrMapWindow (SDL_Window);
    1.64 -        GrRaiseWindow (SDL_Window);
    1.65 -        GrSetFocus (SDL_Window);
    1.66 +        GrUnmapWindow(FSwindow);
    1.67 +        GrMapWindow(SDL_Window);
    1.68 +        GrRaiseWindow(SDL_Window);
    1.69 +        GrSetFocus(SDL_Window);
    1.70          currently_fullscreen = 0;
    1.71      }
    1.72