From 9867ce23674a1767957d20e466ae7d89eb7ed8a1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 3 Jun 2003 05:07:39 +0000 Subject: [PATCH] more unique error for unhandles image bit depths, remove debug prints --- render/color.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/render/color.c b/render/color.c index d312805c..af57b78a 100644 --- a/render/color.c +++ b/render/color.c @@ -184,7 +184,6 @@ void increase_depth(pixel32 *data, XImage *im) switch (im->bits_per_pixel) { case 32: - g_message("increase 32"); for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (p32[x] >> render_red_offset) & 0xff; @@ -200,7 +199,6 @@ void increase_depth(pixel32 *data, XImage *im) } break; case 16: - g_message("increase 16"); for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (p16[x] & render_red_mask) >> render_red_offset << @@ -219,7 +217,7 @@ void increase_depth(pixel32 *data, XImage *im) } break; case 8: - g_message("this bit depth is currently unhandled\n"); + g_message("this image bit depth is currently unhandled\n"); break; case 1: for (y = 0; y < im->height; y++) { @@ -234,6 +232,6 @@ void increase_depth(pixel32 *data, XImage *im) } break; default: - g_message("your bit depth is currently unhandled\n"); + g_message("this image bit depth is currently unhandled\n"); } } -- 2.45.2