changeset 18691:b08913965b6a

cosmetics
author gpoirier
date Tue, 13 Jun 2006 07:58:06 +0000
parents f31c0f34db76
children 9a3d768cb8da
files libvo/vo_s3fb.c
diffstat 1 files changed, 22 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_s3fb.c	Tue Jun 13 07:57:06 2006 +0000
+++ b/libvo/vo_s3fb.c	Tue Jun 13 07:58:06 2006 +0000
@@ -45,14 +45,14 @@
 } vga_t;
 
 static vga_t *v = NULL;
-     static int fd = -1;
-     static struct fb_fix_screeninfo fb_finfo;
-     static struct fb_var_screeninfo fb_vinfo;
-     static uint32_t in_width, in_height, in_format, in_depth, in_s3_format,
+static int fd = -1;
+static struct fb_fix_screeninfo fb_finfo;
+static struct fb_var_screeninfo fb_vinfo;
+static uint32_t in_width, in_height, in_format, in_depth, in_s3_format,
   screenwidth, screenheight, screendepth, screenstride,
   vidwidth, vidheight, vidx, vidy, page, offset, sreg;
-     static char *inpage, *inpage0, *smem = NULL;
-     static void (*alpha_func)();
+static char *inpage, *inpage0, *smem = NULL;
+static void (*alpha_func)();
 
 static void clear_screen();
 
@@ -114,14 +114,14 @@
                  S3_MEMBASE + S3_NEWMMIO_REGBASE);
         close(fd);
         if (v->mmio != MAP_FAILED) {
-  v->cr38 = readcrtc(0x38);
-  v->cr39 = readcrtc(0x39);
-  v->cr53 = readcrtc(0x53);
-  writecrtc(0x38, 0x48);
-  writecrtc(0x39, 0xa5);
-  writecrtc(0x53, 0x08);
-  return 1;
-}
+          v->cr38 = readcrtc(0x38);
+          v->cr39 = readcrtc(0x39);
+          v->cr53 = readcrtc(0x53);
+          writecrtc(0x38, 0x48);
+          writecrtc(0x39, 0xa5);
+          writecrtc(0x53, 0x08);
+          return 1;
+	}
       }
       iopl(0);
     }
@@ -132,11 +132,11 @@
 
 void disable() {
   if (v) {
-  writecrtc(0x53, v->cr53);
-  writecrtc(0x39, v->cr39);
-  writecrtc(0x38, v->cr38);
+    writecrtc(0x53, v->cr53);
+    writecrtc(0x39, v->cr39);
+    writecrtc(0x38, v->cr38);
     ioperm(0x3d4, 2, 0);
-  munmap(v->mmio, S3_NEWMMIO_REGSIZE);
+    munmap(v->mmio, S3_NEWMMIO_REGSIZE);
     free(v);
     v = NULL;
   }
@@ -157,7 +157,7 @@
   pitch = src_w * bpp;
    
   // video card memory layout:
-  // 0-n: visable screen memory, n = width * height * bytes per pixel
+  // 0-n: visible screen memory, n = width * height * bytes per pixel
   // n-m: scaler source memory, n is aligned to a page boundary
   // m+: scaler source memory for multiple buffers
 
@@ -205,7 +205,7 @@
   writecrtc(0x93, (pitch + 7) / 8);
    
   writecrtc(0x67, readcrtc(0x67) | 0x4);
-
+   
   return offset;
 }
 
@@ -283,7 +283,7 @@
     close(fd);
     fd = -1;
     return -1;
-}
+  }
 
   return 0; // Success
 }
@@ -301,7 +301,7 @@
     munmap(smem, fb_finfo.smem_len);
     smem = NULL;
   }
-
+   
   disable();
 
   if(fd != -1) {