~ubuntu-branches/ubuntu/raring/xfig/raring

« back to all changes in this revision

Viewing changes to w_grid.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-05-20 23:33:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070520233359-4ejk0ave70m2ihlz
Tags: 1:3.2.5-rel-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu change:
  - .desktop added.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "w_util.h"
27
27
#include "w_zoom.h"
28
28
 
 
29
#include "u_redraw.h"
 
30
 
29
31
#define null_width 32
30
32
#define null_height 32
31
33
 
34
36
static Pixmap   null_pm, grid_pm = 0;
35
37
static unsigned long bg, fg;
36
38
 
37
 
init_grid()
 
39
 
 
40
 
 
41
void init_grid(void)
38
42
{
39
43
    DeclareArgs(2);
40
44
 
51
55
 
52
56
/* grid in X11 is simply the background of the canvas */
53
57
 
54
 
setup_grid()
 
58
void setup_grid(void)
55
59
{
56
60
    double          spacing;
57
61
    double          x, x0c, y, y0c;
58
62
    int             grid, grid_unit;
59
63
    int             dim;
60
 
    static          prev_grid = -1;
 
64
    static int      prev_grid = -1;
61
65
 
62
66
    DeclareArgs(2);
63
67