/[enigma]/enigma/src/px/drawable.cc
ViewVC logotype

Diff of /enigma/src/px/drawable.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dheck, Sun Jan 5 20:01:41 2003 UTC revision 1.2 by dheck, Thu Jan 30 20:29:59 2003 UTC
# Line 1  Line 1 
1  //======================================================================  /*
2  // Copyright (C) 2002 Daniel Heck   * Copyright (C) 2002,2003 Daniel Heck
3  //   *
4  // This program is free software; you can redistribute it and/or   * This program is free software; you can redistribute it and/or
5  // modify it under the terms of the GNU General Public License   * modify it under the terms of the GNU General Public License
6  // as published by the Free Software Foundation; either version 2   * as published by the Free Software Foundation; either version 2
7  // of the License, or (at your option) any later version.   * of the License, or (at your option) any later version.
8  //     *  
9  // This program is distributed in the hope that it will be useful,   * This program is distributed in the hope that it will be useful,
10  // but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  // GNU General Public License for more details.   * GNU General Public License for more details.
13  //     *
14  // You should have received a copy of the GNU General Public License along   * You should have received a copy of the GNU General Public License along
15  // with this program; if not, write to the Free Software Foundation, Inc.,   * with this program; if not, write to the Free Software Foundation, Inc.,
16  // 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.   * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17  //======================================================================   *
18     * $Id$
19     */
20  #include "drawable.hh"  #include "drawable.hh"
21  #include "video.hh"  #include "video.hh"
22    
# Line 63  Drawable::line(int x1, int y1, int x2, i Line 65  Drawable::line(int x1, int y1, int x2, i
65  // GC implementation  // GC implementation
66  //----------------------------------------------------------------------  //----------------------------------------------------------------------
67    
68  GC::GC(Drawable* d) : drawable(d), cliprect(d->size()), color(0)  GC::GC(Drawable* d)
69    : drawable(d), cliprect(d->size()), color(0)
70  {  {
71      xoff = yoff = 0;      xoff = yoff = 0;
72  }  }
73    
74  GC::GC(Surface *s)  GC::GC(Surface *s)
75      : drawable(s->get_drawable()), cliprect(s->size()), color(0)  : drawable(s->get_drawable()), cliprect(s->size()), color(0)
76  {  {
77      xoff = yoff = 0;      xoff = yoff = 0;
78  }  }
# Line 156  GC::box(const Rect& r) Line 159  GC::box(const Rect& r)
159      drawable->box(rr.x, rr.y, rr.w, rr.h, color);      drawable->box(rr.x, rr.y, rr.w, rr.h, color);
160  }  }
161    
162    void
163  void px::frame(GC & gc, int x, int y, int w, int h)  px::frame(GC & gc, int x, int y, int w, int h)
164  {  {
165      hline(gc, x, y, w);      hline(gc, x, y, w);
166      hline(gc, x, y+h-1, w);      hline(gc, x, y+h-1, w);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26