From ee1b52edaa77631d94c33d23ed21b634dbfa73c0 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 30 Aug 2000 01:34:19 +0000 Subject: [PATCH] noticed there was a set filter but no get.. addded SVN revision: 3275 --- src/Imlib2.h | 1 + src/api.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/Imlib2.h b/src/Imlib2.h index 853ba80..ca88657 100644 --- a/src/Imlib2.h +++ b/src/Imlib2.h @@ -275,6 +275,7 @@ void imlib_render_image_on_drawable_at_angle(int source_x, int source_y, void imlib_image_filter(void); Imlib_Filter imlib_create_filter(int initsize); void imlib_context_set_filter(Imlib_Filter filter); +Imlib_Filter imlib_context_get_filter(void); void imlib_free_filter(void); void imlib_filter_set(int xoff, int yoff, int a, int r, int g, int b); void imlib_filter_set_alpha(int xoff, int yoff, int a, int r, int g, int b); diff --git a/src/api.c b/src/api.c index 3d71942..bb9256d 100644 --- a/src/api.c +++ b/src/api.c @@ -2542,6 +2542,12 @@ imlib_context_set_filter(Imlib_Filter filter) ctxt_filter = filter; } +Imlib_Filter +imlib_context_get_filter(void) +{ + return ctxt_filter; +} + void imlib_filter_set(int xoff, int yoff, int a, int r, int g, int b) {