~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Typeset/Boxes/Graphics/grid_boxes.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2008-04-06 15:11:41 UTC
  • mfrom: (1.1.7 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080406151141-w0sg20jnv86mlt6f
Tags: 1:1.0.6.14-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* 01_american.dpatch is updated
* Since thread support in guile-1.8 is now disabled, the segmentation faults
  should not arise anymore. More info at #439923. (Closes: #450499, #458685)
[kohda]
* This version fixed menu problem.  (Closes: #447083)
* Reverted orig.tar.gz to the upstream tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  grid g;
27
27
  frame f;
28
28
  bool first_time;
29
 
  int dev_pixel;
 
29
  int ren_pixel;
30
30
  array<box> bs;
31
31
  SI un;
32
32
  grid_box_rep (
33
33
    path ip, grid g, frame f, SI un, point lim1, point lim2);
34
 
  void display (ps_device dev);
 
34
  void display (renderer ren);
35
35
  operator tree () { return (tree)g; }
36
36
  path find_lip () { return path (-1); }
37
37
  path find_rip () { return path (-1); }
53
53
}
54
54
 
55
55
void
56
 
grid_box_rep::display (ps_device dev) {
 
56
grid_box_rep::display (renderer ren) {
57
57
  int i;
58
 
  if (first_time || dev->pixel!=dev_pixel) {
 
58
  if (first_time || ren->pixel!=ren_pixel) {
59
59
    point p1= f [point (x1, y1)];
60
60
    point p2= f [point (x2, y2)];
61
61
    point l1= point (min (p1[0], p2[0]), min (p1[1], p2[1]));
87
87
    for (i=0; i<N(grads); i++) {
88
88
      curve c= f (grads[i]->c);
89
89
      bs << curve_box (
90
 
              decorate (ip), c, dev->pixel, dev->get_color (grads[i]->col),
91
 
              array<bool> (0), 0, FILL_MODE_NONE, dev->white, array<box> (0));
 
90
              decorate (ip), c, ren->pixel, named_color (grads[i]->col),
 
91
              array<bool> (0), 0, FILL_MODE_NONE, white, array<box> (0));
92
92
    }
93
93
    first_time= false;
94
 
    dev_pixel= dev->pixel;
 
94
    ren_pixel= ren->pixel;
95
95
  }
96
96
  for (i=0; i<N(bs); i++)
97
 
    bs[i]->display (dev);
 
97
    bs[i]->display (ren);
98
98
}
99
99
 
100
100
gr_selections