diff --git a/src/texture.c b/src/texture.c index 45c9526a..e69fe485 100644 --- a/src/texture.c +++ b/src/texture.c @@ -202,8 +202,8 @@ WTexGradient *wTextureMakeGradient(WScreen *scr, int style, const RColor *from, return texture; } -WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[], - int thickness2, const RColor colors2[]) +WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[2], + int thickness2, const RColor colors2[2]) { WTexIGradient *texture; XGCValues gcv; diff --git a/src/texture.h b/src/texture.h index 7997304b..193c2613 100644 --- a/src/texture.h +++ b/src/texture.h @@ -162,7 +162,7 @@ WTexSolid *wTextureMakeSolid(WScreen*, XColor*); WTexGradient *wTextureMakeGradient(WScreen*, int, const RColor*, const RColor*); WTexMGradient *wTextureMakeMGradient(WScreen*, int, RColor**); WTexTGradient *wTextureMakeTGradient(WScreen*, int, const RColor*, const RColor*, const char *, int); -WTexIGradient *wTextureMakeIGradient(WScreen*, int, const RColor[], int, const RColor[]); +WTexIGradient *wTextureMakeIGradient(WScreen*, int, const RColor[2], int, const RColor[2]); WTexPixmap *wTextureMakePixmap(WScreen *scr, int style, const char *pixmap_file, XColor *color); void wTextureDestroy(WScreen*, WTexture*);