This commit is contained in:
Nishi 2025-12-01 23:10:19 +09:00
commit dffe16eeff
Signed by: nishi
GPG key ID: 27EF69B208EB9343
4 changed files with 205 additions and 11 deletions

View file

@ -16,11 +16,29 @@
#include <stdlib.h>
#include <string.h>
typedef struct image {
char* path;
unsigned char* data;
int width;
int height;
int x;
int y;
double scale;
} image_t;
/* main.c */
extern MwWidget window, menu;
extern MwLLPixmap pxprojector;
extern MwWidget window, menu, image;
extern MwLLPixmap pxprojector, pxdata;
extern MwWidget bprev, bnext, bzoomin, bzoomout;
/* ui.c */
void ui_init(void);
extern int current;
void ui_init(void);
/* image.c */
extern image_t* images;
void image_init(void);
void image_add(const char* path);
void image_render(void);
#endif