aboutsummaryrefslogtreecommitdiffstats
path: root/src/xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xlib.c')
-rw-r--r--src/xlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xlib.c b/src/xlib.c
index 5023cbd..d36a931 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -85,8 +85,7 @@ XImage *ximage(struct image *img, unsigned int width, unsigned int height) {
return ximg;
}
-
-XImage *getimage(struct image *img, int width, int height){
+XImage *getimage(struct image *img, unsigned int width, unsigned int height){
if(width * img->height > height * img->width){
return ximage(img, img->width * height / img->height, height);
}else{