diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/filter.c | 6 | ||||
-rw-r--r-- | render/picturestr.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/render/filter.c b/render/filter.c index 8bb6d5ec2..0cbd47bd2 100644 --- a/render/filter.c +++ b/render/filter.c @@ -47,7 +47,7 @@ static int nfilterNames; */ int -PictureGetFilterId (char *filter, int len, Bool makeit) +PictureGetFilterId (const char *filter, int len, Bool makeit) { int i; char *name; @@ -125,7 +125,7 @@ PictureFreeFilterIds (void) int PictureAddFilter (ScreenPtr pScreen, - char *filter, + const char *filter, PictFilterValidateParamsProcPtr ValidateParams, int width, int height) @@ -160,7 +160,7 @@ PictureAddFilter (ScreenPtr pScreen, } Bool -PictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias) +PictureSetFilterAlias (ScreenPtr pScreen, const char *filter, const char *alias) { PictureScreenPtr ps = GetPictureScreen(pScreen); int filter_id = PictureGetFilterId (filter, -1, FALSE); diff --git a/render/picturestr.h b/render/picturestr.h index 1f3f5a433..9b376710e 100644 --- a/render/picturestr.h +++ b/render/picturestr.h @@ -433,20 +433,20 @@ extern _X_EXPORT Bool PictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats); extern _X_EXPORT int -PictureGetFilterId (char *filter, int len, Bool makeit); +PictureGetFilterId (const char *filter, int len, Bool makeit); extern _X_EXPORT char * PictureGetFilterName (int id); extern _X_EXPORT int PictureAddFilter (ScreenPtr pScreen, - char *filter, + const char *filter, PictFilterValidateParamsProcPtr ValidateParams, int width, int height); extern _X_EXPORT Bool -PictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias); +PictureSetFilterAlias (ScreenPtr pScreen, const char *filter, const char *alias); extern _X_EXPORT Bool PictureSetDefaultFilters (ScreenPtr pScreen); |