summaryrefslogtreecommitdiff
path: root/render/color.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-24 06:02:38 +0000
committerDana Jansens <danakj@orodu.net>2003-07-24 06:02:38 +0000
commit5be0a82a353b67160142134de1cc51fa31d72759 (patch)
tree333f0e70a6cf4f2cb5252c2e16922a1b6408dc06 /render/color.c
parent230abdc5a0848cd05dc3a007826a2a6b8a73c0a5 (diff)
use ob_debug for any debug printing and only display the output when its a debug build or when --debug is passed to it
Diffstat (limited to 'render/color.c')
-rw-r--r--render/color.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/render/color.c b/render/color.c
index 3e9199c3..d16bbf0c 100644
--- a/render/color.c
+++ b/render/color.c
@@ -1,8 +1,9 @@
+#include "render.h"
+#include "color.h"
+
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <string.h>
-#include "render.h"
-#include "color.h"
void RrColorAllocateGC(RrColor *in)
{
@@ -75,10 +76,6 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im)
if ((RrRedOffset(inst) != RrDefaultRedOffset) ||
(RrBlueOffset(inst) != RrDefaultBlueOffset) ||
(RrGreenOffset(inst) != RrDefaultGreenOffset)) {
- g_message("CONVERSION %d->%d %d->%d %d->%d",
- RrDefaultRedOffset, RrRedOffset(inst),
- RrDefaultGreenOffset, RrGreenOffset(inst),
- RrDefaultBlueOffset, RrBlueOffset(inst));
for (y = 0; y < im->height; y++) {
for (x = 0; x < im->width; x++) {
r = (data[x] >> RrDefaultRedOffset) & 0xFF;
@@ -125,7 +122,7 @@ void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im)
break;
default:
- g_message("your bit depth is currently unhandled\n");
+ g_warning("your bit depth is currently unhandled\n");
}
}
@@ -143,8 +140,6 @@ static void swap_byte_order(XImage *im)
{
int x, y, di;
- g_message("SWAPPING BYTE ORDER");
-
di = 0;
for (y = 0; y < im->height; ++y) {
for (x = 0; x < im->height; ++x) {
@@ -163,7 +158,7 @@ static void swap_byte_order(XImage *im)
case 8:
break;
default:
- g_message("your bit depth is currently unhandled\n");
+ g_warning("your bit depth is currently unhandled");
}
}
di += im->bytes_per_line;
@@ -224,7 +219,7 @@ void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im)
}
break;
case 8:
- g_message("this image bit depth is currently unhandled\n");
+ g_warning("this image bit depth is currently unhandled");
break;
case 1:
for (y = 0; y < im->height; y++) {
@@ -239,7 +234,7 @@ void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im)
}
break;
default:
- g_message("this image bit depth is currently unhandled\n");
+ g_warning("this image bit depth is currently unhandled");
}
}