1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: xpm.c |
2 | * File: xpm.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: xpm.C,v 1.5 2004/01/31 00:20:21 pcg Exp $ |
4 | * $Id: xpm.C,v 1.6 2004/01/31 02:15:02 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1997 Carsten Haitzler <raster@zip.com.au> |
7 | * Copyright (c) 1997 Carsten Haitzler <raster@zip.com.au> |
8 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
8 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
9 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
9 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
… | |
… | |
243 | |
243 | |
244 | /* |
244 | /* |
245 | * Calculate tiling sizes and increments |
245 | * Calculate tiling sizes and increments |
246 | * At start, p == 0, incr == xpmwidthheight |
246 | * At start, p == 0, incr == xpmwidthheight |
247 | */ |
247 | */ |
248 | void |
248 | /* INTPROTO */ |
|
|
249 | static void |
249 | rxvt_pixmap_incr(unsigned int *wh, unsigned int *xy, float *incr, float *p, unsigned int widthheight, unsigned int xpmwidthheight) |
250 | rxvt_pixmap_incr(unsigned int *wh, unsigned int *xy, float *incr, float *p, unsigned int widthheight, unsigned int xpmwidthheight) |
250 | { |
251 | { |
251 | unsigned int cwh, cxy; |
252 | unsigned int cwh, cxy; |
252 | float cincr, cp; |
253 | float cincr, cp; |
253 | |
254 | |