Mercurial > audlegacy-plugins
view src/rovascope/pn_utils.h @ 1055:0cc6b35fbeb4 trunk
[svn] - evdev-plug 0.2: do not intercept all event types, currently only pick types KEY and ABSOLUTE; there could be other event types that are worth intercepting, feedback needed about this
author | giacomo |
---|---|
date | Tue, 22 May 2007 05:24:09 -0700 |
parents | 290588854a9d |
children |
line wrap: on
line source
#ifndef _PN_UTILS_H #define _PN_UTILS_H #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #define CAP(i,c) (i > c ? c : i < -(c) ? -(c) : i) #define CAPHILO(i,h,l) (i > h ? h : i < l ? l : i) #define CAPHI(i,h) (i > h ? h : i) #define CAPLO(i,l) (i < l ? l : i) #define PN_IMG_INDEX(x,y) ((x) + (pn_image_data->width * (y))) #endif /* _PN_UTILS_H */