summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/canvas.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-26 00:54:20 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-26 00:54:20 +0000
commite9c25fd00ec34e0a7ca421b1ac230db157985f92 (patch)
tree132b185e0e6b7516285b9a084e5a1ee65c166889 /libdimension/dimension/canvas.h
parent0bb6bfe0b08eb9fc2ba62f64bdb21cb5b592c292 (diff)
downloaddimension-e9c25fd00ec34e0a7ca421b1ac230db157985f92.tar.xz
Don't check if it's too late to add canvas optimizers.
This fixes some errors displayed by concurrency checkers like helgrind and drd.
Diffstat (limited to 'libdimension/dimension/canvas.h')
-rw-r--r--libdimension/dimension/canvas.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/dimension/canvas.h b/libdimension/dimension/canvas.h
index 0d37acf..62b5b75 100644
--- a/libdimension/dimension/canvas.h
+++ b/libdimension/dimension/canvas.h
@@ -31,7 +31,6 @@ typedef struct {
/* An array of dmnsn_canvas_optimizer's */
dmnsn_array *optimizers;
- int too_late; /* Is it too late to add optimizers? */
/*
* Stored in first-quadrant representation (origin is bottom-left). The pixel
@@ -63,8 +62,8 @@ dmnsn_canvas *dmnsn_new_canvas(unsigned int x, unsigned int y);
void dmnsn_delete_canvas(dmnsn_canvas *canvas);
/* Set a canvas optimizer */
-int dmnsn_optimize_canvas(dmnsn_canvas *canvas,
- dmnsn_canvas_optimizer optimizer);
+void dmnsn_optimize_canvas(dmnsn_canvas *canvas,
+ dmnsn_canvas_optimizer optimizer);
/* Pixel accessors */