]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/console/video_console.c
xnu-3789.21.4.tar.gz
[apple/xnu.git] / osfmk / console / video_console.c
index e9a1555a5edbdd49e02ccfa2ba784f5c6a9be05a..5295d3c03d10e2ec3c167beb1b632a756eea6ddd 100644 (file)
@@ -2973,39 +2973,6 @@ initialize_screen(PE_Video * boot_vinfo, unsigned int op)
        }
 }
 
        }
 }
 
-void 
-dim_screen(void)
-{
-       unsigned int *p, *endp, *row;
-       int      col, rowline, rowlongs;
-       register unsigned int mask;
-
-       if(!vinfo.v_depth)
-               return;
-
-       if ( vinfo.v_depth == 32 )
-               mask = 0x007F7F7F;
-       else if ( vinfo.v_depth == 30 )
-               mask = (0x1ff<<20) | (0x1ff<<10) | 0x1ff;
-       else if ( vinfo.v_depth == 16 )
-               mask = 0x3DEF3DEF;
-       else
-               return;
-
-       rowline = (int)(vinfo.v_rowscanbytes / 4);
-       rowlongs = (int)(vinfo.v_rowbytes / 4);
-
-       p = (unsigned int*) vinfo.v_baseaddr;
-       endp = p + (rowlongs * vinfo.v_height);
-
-       for (row = p ; row < endp ; row += rowlongs) {
-               for (p = &row[0], col = 0; col < rowline; col++) {
-                       *p = (*p >> 1) & mask;
-                       ++p;
-               }
-       }
-}
-
 void vcattach(void); /* XXX gcc 4 warning cleanup */
 
 void
 void vcattach(void); /* XXX gcc 4 warning cleanup */
 
 void