summaryrefslogtreecommitdiffstats
path: root/common/glc.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-22 16:39:29 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-05-03 14:44:11 +0200
commit2a611d9955546dc52be37651e6f7b6f7f03c7aa4 (patch)
treef3bfb731ffadbec59f32943029b4957022beb66c /common/glc.c
parentedfe2683583d7a849661cc08dc1964a5c925dff2 (diff)
downloadspice-2a611d9955546dc52be37651e6f7b6f7f03c7aa4.tar.gz
spice-2a611d9955546dc52be37651e6f7b6f7f03c7aa4.tar.xz
spice-2a611d9955546dc52be37651e6f7b6f7f03c7aa4.zip
move WARN and WARN_ONCE to spice_common.h
Diffstat (limited to 'common/glc.c')
-rw-r--r--common/glc.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/common/glc.c b/common/glc.c
index 0396fc98..1c81dd86 100644
--- a/common/glc.c
+++ b/common/glc.c
@@ -39,14 +39,7 @@
#include "mem.h"
#include "glc.h"
#include "gl_utils.h"
-
-#define WARN_ONCE(x) { \
- static int warn = TRUE; \
- if (warn) { \
- printf x; \
- warn = FALSE; \
- } \
-}
+#include "spice_common.h"
#define TESS_VERTEX_ALLOC_BUNCH 20
@@ -1015,7 +1008,7 @@ void _glc_fill_mask(GLCCtx glc, int x_dest, int y_dest, int width, int height, i
ASSERT(ctx && bitmap);
start_draw(ctx);
if (ctx->pat) {
- WARN_ONCE(("%s: unimplemented fill mask with pattern\n", __FUNCTION__));
+ WARN_ONCE("%s: unimplemented fill mask with pattern\n", __FUNCTION__);
}
fill_mask(ctx, x_dest, y_dest, width, height, stride, bitmap);
}