changeset 6860:c1b11029a5f2 draft

(svn r10100) -Fix r10093: some code now became obsolete as it never did something
author truelight <truelight@openttd.org>
date Mon, 11 Jun 2007 14:45:26 +0000
parents 231687bfe05e
children 972760c16e13
files src/blitter/8bpp_optimized.cpp
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/blitter/8bpp_optimized.cpp
+++ b/src/blitter/8bpp_optimized.cpp
@@ -137,18 +137,15 @@
 
 			for (int x = 0; x < UnScaleByZoom(sprite->width, (ZoomLevel)i); x++) {
 				uint color = 0;
-				int count = 0;
 
 				/* Get the color keeping in mind the zoom-level */
 				for (int j = 0; j < ScaleByZoom(1, (ZoomLevel)i); j++) {
-					if (src->m != 0) { color = src->m; count++; }
+					if (src->m != 0) color = src->m;
 					src++;
 					rx++;
 					/* Because of the scaling it might happen we read outside the buffer. Avoid that. */
 					if (rx == sprite->width) break;
 				}
-				/* If more than 12.5% of the pixels are non-transparent, make thisone non-transparent too */
-				if (count < ScaleByZoom(1, (ZoomLevel)i) / 8) color = 0;
 
 				if (last_color == 0 || color == 0) {
 					if (count_index != 0) {