diff options
author | Bert <ber.t@gmx.com> | 2011-07-22 14:49:06 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-07-22 14:49:06 +0200 |
commit | a271e167443aedca2ed9c28b51fc6de33692dadb (patch) | |
tree | 01d2e58d2aa579de2abf8e609612721eb4a7b7dd /image.h | |
parent | 5f780fc3e77aef1f1b87fdd6662a7caee6efbc3b (diff) |
Reduced usage of preprocessor macros
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -21,21 +21,9 @@ #include <Imlib2.h> +#include "types.h" #include "window.h" -typedef enum { - SCALE_DOWN = 0, - SCALE_FIT, - SCALE_ZOOM -} scalemode_t; - -typedef enum { - PAN_LEFT = 0, - PAN_RIGHT, - PAN_UP, - PAN_DOWN -} pandir_t; - typedef struct { Imlib_Image *im; @@ -68,8 +56,8 @@ int img_zoom_in(img_t*, win_t*); int img_zoom_out(img_t*, win_t*); int img_move(img_t*, win_t*, int, int); -int img_pan(img_t*, win_t*, pandir_t, int); -int img_pan_edge(img_t*, win_t*, pandir_t); +int img_pan(img_t*, win_t*, direction_t, int); +int img_pan_edge(img_t*, win_t*, direction_t); void img_rotate_left(img_t*, win_t*); void img_rotate_right(img_t*, win_t*); |