2023-05-14 00:21:16 +02:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
2023-03-13 21:21:40 +01:00
|
|
|
#if USEIMAGE
|
2023-04-05 20:44:09 +02:00
|
|
|
#include <errno.h>
|
|
|
|
#include <pwd.h>
|
|
|
|
#include <Imlib2.h>
|
|
|
|
#include <openssl/md5.h>
|
|
|
|
|
|
|
|
static void setimagesize(int width, int height);
|
|
|
|
static void setimageopts(void);
|
|
|
|
static void cleanupimage(void);
|
|
|
|
static void drawimage(void);
|
|
|
|
static void rotateimage(void);
|
|
|
|
static void flipimage(void);
|
|
|
|
static void loadimage(const char *file, int *width, int *height);
|
|
|
|
static void loadimagecache(const char *file, int *width, int *height);
|
|
|
|
static void resizetoimageheight(int imageheight);
|
|
|
|
|
|
|
|
static Imlib_Image image = NULL;
|
2023-03-13 21:21:40 +01:00
|
|
|
#endif
|