diff -u base/cinelerra/overlayframe.C hvirtual-1.1.6/cinelerra/overlayframe.C
--- base/cinelerra/overlayframe.C	2003-07-23 20:43:05.000000000 +0200
+++ hvirtual-1.1.6/cinelerra/overlayframe.C	2003-08-09 21:51:14.000000000 +0200
@@ -2583,7 +2583,6 @@
 #define BLEND_ONLY_4_NORMAL(int_type, type, max, chroma_offset) \
 { \
 	int_type opacity = (int_type)(alpha * max + 0.5); \
-	int_type transparency = max - opacity; \
 	int_type maxsq = ((int_type)max) * max; \
  \
 	type** output_rows = (type**)output->get_rows(); \
@@ -2603,20 +2602,16 @@
 			pixel_transparency = (int_type)maxsq - pixel_opacity; \
 		 \
 		 \
-		 	int_type r,g,b; \
-			r = ((int_type)in_row[0] * pixel_opacity + \
-				(int_type)output[0] * pixel_transparency) / max / max; \
-			output[0] = (type)CLIP(r, 0, max); \
-			g = (((int_type)in_row[1] - chroma_offset) * pixel_opacity + \
+			output[0] = (type)(((int_type)in_row[0] * pixel_opacity + \
+				(int_type)output[0] * pixel_transparency) / max / max); \
+			output[1] = (type)((((int_type)in_row[1] - chroma_offset) * pixel_opacity + \
 				((int_type)output[1] - chroma_offset) * pixel_transparency) \
 				/ max / max + \
-				chroma_offset; \
-			output[1] = (type)CLIP(g, 0, max); \
-			b = (((int_type)in_row[2] - chroma_offset) * pixel_opacity + \
+				chroma_offset); \
+			output[2] = (type)((((int_type)in_row[2] - chroma_offset) * pixel_opacity + \
 				((int_type)output[2] - chroma_offset) * pixel_transparency) \
 				/ max / max + \
-				chroma_offset; \
-			output[2] = (type)CLIP(b, 0, max); \
+				chroma_offset); \
 			output[3] = (type)(in_row[3] > output[3] ? in_row[3] : output[3]); \
  \
 			in_row += 4; \
