When commiting code, cleanup before doing it
authorPatrice Mandin <patmandin@gmail.com>
Fri, 06 Feb 2004 22:53:32 +0000
changeset 800 60a4293ffea9
parent 799 85960507bd2e
child 801 ff1058d642dc
When commiting code, cleanup before doing it
src/video/gem/SDL_gemvideo.c
--- a/src/video/gem/SDL_gemvideo.c	Fri Feb 06 22:41:00 2004 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Fri Feb 06 22:53:32 2004 +0000
@@ -63,7 +63,7 @@
 
 /* Defines */
 
-#define DEBUG_VIDEO_GEM	0
+/* #define DEBUG_VIDEO_GEM	1 */
 
 #define GEM_VID_DRIVER_NAME "gem"
 
@@ -216,60 +216,6 @@
 	if (EdDI_version >= EDDI_11) {
 		VDI_pitch = work_out[5];
 		VDI_screen = (void *) *((unsigned long *) &work_out[6]);
-
-#if 0 /* lecoat */
-		switch(num_colours) {
-			case 32768UL:
-				if (work_out[14] & (1<<7)) {
-					/* Little endian */
-					if (work_out[14] & (1<<1)) {
-						VDI_FBMASK(1<<13, 31<<3, (3<<14)|7, 31<<8);
-					} else {
-						VDI_FBMASK(1<<7, 31<<2, (7<<13)|3, 31<<8);
-					}
-				} else {
-					/* Big endian */
-					if (work_out[14] & (1<<1)) {
-						VDI_FBMASK(1<<5, 31<<11, 31<<6, 31);
-					} else {
-						VDI_FBMASK(1<<15, 31<<10, 31<<5, 31);
-					}
-				}
-				break;
-			case 65536UL:
-				if (work_out[14] & (1<<7)) {
-					/* Little endian */
-					VDI_FBMASK(0, 31<<3, (7<<13)|7, 31<<8);
-				} else {
-					/* Big endian */
-					VDI_FBMASK(0, 31<<11, 63<<5, 31);
-				}
-				break;
-			case 16777216UL:
-				if (work_out[14] & (1<<7)) {
-					/* Little endian */
-					switch(num_bits) {
-						case 24:
-							VDI_FBMASK(0, 255, 255<<8, 255<<16);
-							break;
-						case 32:
-							VDI_FBMASK(255, 255<<8, 255<<16, 255<<24);
-							break;
-					}
-				} else {
-					/* Big endian */
-					switch(num_bits) {
-						case 24:
-							VDI_FBMASK(0, 255<<16, 255<<8, 255);
-							break;
-						case 32:
-							VDI_FBMASK(255<<24, 255<<16, 255<<8, 255);
-							break;
-					}
-				}
-				break;
-		}
-#endif
 	}
 
 	switch(clut_type) {
@@ -286,7 +232,7 @@
 			}
 			break;
 		case VDI_CLUT_SOFTWARE:
-/* lecoat 			if (EdDI_version < EDDI_11) */ {
+			{
 				int component; /* red, green, blue, alpha, overlay */
 				int num_bit;
 				unsigned short *tmp_p;
@@ -456,19 +402,10 @@
 	GEM_win_fulled = SDL_FALSE;
 
 	VDI_screen = NULL;
-#if 1 /* lecoat */
 	VDI_pitch = VDI_w * VDI_pixelsize;
 	VDI_format = ( (VDI_bpp <= 8) ? VDI_FORMAT_INTER : VDI_FORMAT_PACK);
 	VDI_redmask = VDI_greenmask = VDI_bluemask = VDI_alphamask = 0;
 	VDI_ReadExtInfo(this, work_out);
-#else
-	VDI_ReadExtInfo(this, work_out);
-	if (VDI_screen == NULL) {
-		VDI_pitch = VDI_w * VDI_pixelsize;
-		VDI_format = ( (VDI_bpp <= 8) ? VDI_FORMAT_INTER : VDI_FORMAT_PACK);
-		VDI_redmask = VDI_greenmask = VDI_bluemask = VDI_alphamask = 0;
-	}
-#endif
 
 #ifdef DEBUG_VIDEO_GEM
 	printf("sdl:video:gem: screen: address=0x%08x, pitch=%d\n", VDI_screen, VDI_pitch);
@@ -775,6 +712,7 @@
 {
 	return -1;
 }
+
 static void GEM_FreeHWSurface(_THIS, SDL_Surface *surface)
 {
 	return;
@@ -1123,10 +1061,6 @@
 	wind_update(END_UPDATE);
 
 	v_show_c(VDI_handle,1);
-
-#if 0 /*DEBUG_VIDEO_GEM*/
-	fflush(stdout);
-#endif
 }
 
 static void refresh_window(_THIS, int winhandle, short *rect)