summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-03-19 18:23:17 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-03-19 18:23:17 +0100
commit1fdda102a9bf6ab9a13c7baed486f9ea307d879a (patch)
treee406738b9955f2180d5d7f3b4b952cebea42acd8
parent8fbeea6fa3e42a935405780e884ff777af1a4bc0 (diff)
downloadbicubic-1fdda102a9bf6ab9a13c7baed486f9ea307d879a.tar.gz
bicubic-1fdda102a9bf6ab9a13c7baed486f9ea307d879a.tar.bz2
Fixed generic private defines.
-rw-r--r--bicubic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bicubic.c b/bicubic.c
index b81de99..c5676e1 100644
--- a/bicubic.c
+++ b/bicubic.c
@@ -72,7 +72,7 @@ typedef struct _BicubicScreen
#define PLUGIN_SCREEN(object, plugin, prefix) \
plugin##Screen * prefix##s = \
GET_PLUGIN_SCREEN (object, \
- GET_PLUGIN_DISPLAY (s->display, plugin), plugin)
+ GET_PLUGIN_DISPLAY ((object)->display, plugin), plugin)
#define GET_PLUGIN_WINDOW(object, parent, plugin) \
((plugin##Window *) \
@@ -80,8 +80,8 @@ typedef struct _BicubicScreen
#define PLUGIN_WINDOW(object, plugin, prefix) \
plugin##Window * prefix##w = \
GET_PLUGIN_WINDOW (object, \
- GET_PLUGIN_SCREEN (w->screen, \
- GET_PLUGIN_DISPLAY (w->screen->display, plugin), plugin), plugin)
+ GET_PLUGIN_SCREEN ((object)->screen, \
+ GET_PLUGIN_DISPLAY ((object)->screen->display, plugin), plugin), plugin)
#define BICUBIC_DISPLAY(d) PLUGIN_DISPLAY(d, Bicubic, b)
#define BICUBIC_SCREEN(s) PLUGIN_SCREEN(s, Bicubic, b)