… | |
… | |
22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | *---------------------------------------------------------------------*/ |
23 | *---------------------------------------------------------------------*/ |
24 | |
24 | |
25 | #include "../config.h" /* NECESSARY */ |
25 | #include "../config.h" /* NECESSARY */ |
26 | #include "rxvt.h" /* NECESSARY */ |
26 | #include "rxvt.h" /* NECESSARY */ |
27 | #include "xpm.intpro" /* PROTOS for internal routines */ |
|
|
28 | |
27 | |
29 | #ifdef XPM_BACKGROUND |
28 | #ifdef XPM_BACKGROUND |
|
|
29 | |
|
|
30 | static void rxvt_pixmap_incr (unsigned int *wh, unsigned int *xy, float *incr, float *p, unsigned int widthheight, unsigned int xpmwidthheight); |
30 | |
31 | |
31 | /* |
32 | /* |
32 | * These GEOM strings indicate absolute size/position: |
33 | * These GEOM strings indicate absolute size/position: |
33 | * @ `WxH+X+Y' |
34 | * @ `WxH+X+Y' |
34 | * @ `WxH+X' -> Y = X |
35 | * @ `WxH+X' -> Y = X |
… | |
… | |
266 | |
267 | |
267 | /* |
268 | /* |
268 | * Calculate tiling sizes and increments |
269 | * Calculate tiling sizes and increments |
269 | * At start, p == 0, incr == xpmwidthheight |
270 | * At start, p == 0, incr == xpmwidthheight |
270 | */ |
271 | */ |
271 | /* INTPROTO */ |
|
|
272 | static void |
272 | static void |
273 | rxvt_pixmap_incr (unsigned int *wh, unsigned int *xy, float *incr, float *p, unsigned int widthheight, unsigned int xpmwidthheight) |
273 | rxvt_pixmap_incr (unsigned int *wh, unsigned int *xy, float *incr, float *p, unsigned int widthheight, unsigned int xpmwidthheight) |
274 | { |
274 | { |
275 | unsigned int cwh, cxy; |
275 | unsigned int cwh, cxy; |
276 | float cincr, cp; |
276 | float cincr, cp; |