diff src/video/xbios/SDL_xbios_centscreen.c @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 782fd950bd46
children
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios_centscreen.c	Mon May 29 03:53:21 2006 +0000
+++ b/src/video/xbios/SDL_xbios_centscreen.c	Mon May 29 04:04:35 2006 +0000
@@ -33,7 +33,7 @@
 #include "SDL_xbios_centscreen.h"
 
 int
-SDL_XBIOS_CentscreenInit (_THIS)
+SDL_XBIOS_CentscreenInit(_THIS)
 {
     centscreen_mode_t curmode, listedmode;
     unsigned long result;
@@ -41,44 +41,44 @@
 
     /* Reset current mode list */
     if (XBIOS_modelist) {
-        SDL_free (XBIOS_modelist);
+        SDL_free(XBIOS_modelist);
         XBIOS_nummodes = 0;
         XBIOS_modelist = NULL;
     }
 
     /* Add Centscreen modes */
-    Vread (&curmode);
+    Vread(&curmode);
     cur_handle = curmode.handle;
     curmode.mode = curmode.physx = curmode.physy = curmode.plan =
         curmode.logx = curmode.logy = -1;
 
-    result = Vfirst (&curmode, &listedmode);
+    result = Vfirst(&curmode, &listedmode);
     if (result == 0) {
         while (result == 0) {
             /* Don't add modes with virtual screen */
             if ((listedmode.mode & CSCREEN_VIRTUAL) == 0) {
                 /* Don't add modes with bpp<8 */
                 if (listedmode.plan >= 8) {
-                    SDL_XBIOS_AddMode (this, listedmode.mode,
-                                       listedmode.physx,
-                                       listedmode.physy,
-                                       listedmode.plan, SDL_FALSE);
+                    SDL_XBIOS_AddMode(this, listedmode.mode,
+                                      listedmode.physx,
+                                      listedmode.physy,
+                                      listedmode.plan, SDL_FALSE);
                 }
             }
-            SDL_memcpy (&curmode, &listedmode, sizeof (centscreen_mode_t));
+            SDL_memcpy(&curmode, &listedmode, sizeof(centscreen_mode_t));
             curmode.mode = curmode.physx = curmode.physy = curmode.plan =
                 curmode.logx = curmode.logy = -1;
-            result = Vnext (&curmode, &listedmode);
+            result = Vnext(&curmode, &listedmode);
         }
     } else {
-        fprintf (stderr, "No suitable Centscreen modes\n");
+        fprintf(stderr, "No suitable Centscreen modes\n");
     }
 
     return cur_handle;
 }
 
 void
-SDL_XBIOS_CentscreenSetmode (_THIS, int width, int height, int planes)
+SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
 {
     centscreen_mode_t newmode, curmode;
 
@@ -86,16 +86,16 @@
     newmode.physx = width;
     newmode.physy = height;
     newmode.plan = planes;
-    Vwrite (0, &newmode, &curmode);
+    Vwrite(0, &newmode, &curmode);
 
     /* Disable screensaver */
-    Vread (&newmode);
+    Vread(&newmode);
     newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR);
-    Vwrite (0, &newmode, &curmode);
+    Vwrite(0, &newmode, &curmode);
 }
 
 void
-SDL_XBIOS_CentscreenRestore (_THIS, int prev_handle)
+SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
 {
     centscreen_mode_t newmode, curmode;
 
@@ -103,7 +103,7 @@
     newmode.handle = prev_handle;
     newmode.mode = newmode.physx = newmode.physy = newmode.plan =
         newmode.logx = newmode.logy = -1;
-    Vwrite (0, &newmode, &curmode);
+    Vwrite(0, &newmode, &curmode);
 }
 
 /* vi: set ts=4 sw=4 expandtab: */