changeset 105:2136ea8953f9

Some minor name changes to clean up
author Sam Lantinga <slouken@lokigames.com>
date Fri, 13 Jul 2001 10:15:52 +0000
parents a746656b7599
children 63ec24e0575f
files src/video/dga/SDL_dgavideo.c src/video/dga/SDL_dgavideo.h
diffstat 2 files changed, 16 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/dga/SDL_dgavideo.c	Fri Jul 13 01:21:59 2001 +0000
+++ b/src/video/dga/SDL_dgavideo.c	Fri Jul 13 10:15:52 2001 +0000
@@ -631,17 +631,17 @@
 	surfaces.next = NULL;
 }
 
-static __inline__ void DGA_AddDirtySurface(SDL_Surface *surface)
+static __inline__ void DGA_AddBusySurface(SDL_Surface *surface)
 {
 	((vidmem_bucket *)surface->hwdata)->dirty = 1;
 }
 
-static __inline__ int DGA_IsSurfaceDirty(SDL_Surface *surface)
+static __inline__ int DGA_IsSurfaceBusy(SDL_Surface *surface)
 {
 	return ((vidmem_bucket *)surface->hwdata)->dirty;
 }
 
-static __inline__ void DGA_WaitDirtySurfaces(_THIS)
+static __inline__ void DGA_WaitBusySurfaces(_THIS)
 {
 	vidmem_bucket *bucket;
 
@@ -783,7 +783,7 @@
 	surface->hwdata = NULL;
 }
 
-static __inline__ void dst_to_xy(_THIS, SDL_Surface *dst, int *x, int *y)
+static __inline__ void DGA_dst_to_xy(_THIS, SDL_Surface *dst, int *x, int *y)
 {
 	*x = (long)((Uint8 *)dst->pixels - memory_base)%memory_pitch;
 	*y = (long)((Uint8 *)dst->pixels - memory_base)/memory_pitch;
@@ -805,7 +805,7 @@
 			/* Keep waiting for the hardware ... */ ;
 		was_flipped = 0;
 	}
-	dst_to_xy(this, dst, &x, &y);
+	DGA_dst_to_xy(this, dst, &x, &y);
 	x += rect->x;
 	y += rect->y;
 	w = rect->w;
@@ -815,7 +815,7 @@
 #endif
 	XDGAFillRectangle(DGA_Display, DGA_Screen, x, y, w, h, color);
 	XFlush(DGA_Display);
-	DGA_AddDirtySurface(dst);
+	DGA_AddBusySurface(dst);
 	UNLOCK_DISPLAY();
 	return(0);
 }
@@ -836,10 +836,10 @@
 			/* Keep waiting for the hardware ... */ ;
 		was_flipped = 0;
 	}
-	dst_to_xy(this, src, &srcx, &srcy);
+	DGA_dst_to_xy(this, src, &srcx, &srcy);
 	srcx += srcrect->x;
 	srcy += srcrect->y;
-	dst_to_xy(this, dst, &dstx, &dsty);
+	DGA_dst_to_xy(this, dst, &dstx, &dsty);
 	dstx += dstrect->x;
 	dsty += dstrect->y;
 	w = srcrect->w;
@@ -855,8 +855,8 @@
 			srcx, srcy, w, h, dstx, dsty);
 	}
 	XFlush(DGA_Display);
-	DGA_AddDirtySurface(src);
-	DGA_AddDirtySurface(dst);
+	DGA_AddBusySurface(src);
+	DGA_AddBusySurface(dst);
 	UNLOCK_DISPLAY();
 	return(0);
 }
@@ -902,15 +902,15 @@
 	if ( surface == this->screen ) {
 		SDL_mutexP(hw_lock);
 		LOCK_DISPLAY();
-		if ( DGA_IsSurfaceDirty(surface) ) {
-			DGA_WaitDirtySurfaces(this);
+		if ( DGA_IsSurfaceBusy(surface) ) {
+			DGA_WaitBusySurfaces(this);
 		}
 		DGA_WaitFlip(this);
 		UNLOCK_DISPLAY();
 	} else {
-		if ( DGA_IsSurfaceDirty(surface) ) {
+		if ( DGA_IsSurfaceBusy(surface) ) {
 			LOCK_DISPLAY();
-			DGA_WaitDirtySurfaces(this);
+			DGA_WaitBusySurfaces(this);
 			UNLOCK_DISPLAY();
 		}
 	}
@@ -927,8 +927,8 @@
 {
 	/* Wait for vertical retrace and then flip display */
 	LOCK_DISPLAY();
-	if ( DGA_IsSurfaceDirty(this->screen) ) {
-		DGA_WaitDirtySurfaces(this);
+	if ( DGA_IsSurfaceBusy(this->screen) ) {
+		DGA_WaitBusySurfaces(this);
 	}
 	DGA_WaitFlip(this);
 	XDGASetViewport(DGA_Display, DGA_Screen,
--- a/src/video/dga/SDL_dgavideo.h	Fri Jul 13 01:21:59 2001 +0000
+++ b/src/video/dga/SDL_dgavideo.h	Fri Jul 13 10:15:52 2001 +0000
@@ -58,12 +58,6 @@
 	struct vidmem_bucket *next;
 } vidmem_bucket;
 
-/* Information about the location of the surface in hardware memory */
-struct private_hwdata {
-	int x;
-	int y;
-};
-
 /* Private display data */
 struct SDL_PrivateVideoData {
 	Display *DGA_Display;