diff options
Diffstat (limited to 'src/FbTk/FbPixmap.cc')
-rw-r--r-- | src/FbTk/FbPixmap.cc | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc index c627779..a05e287 100644 --- a/src/FbTk/FbPixmap.cc +++ b/src/FbTk/FbPixmap.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbPixmap.cc,v 1.3 2003/04/27 23:56:13 fluxgen Exp $ | 22 | // $Id: FbPixmap.cc,v 1.4 2003/04/29 08:53:24 fluxgen Exp $ |
23 | 23 | ||
24 | #include "FbPixmap.hh" | 24 | #include "FbPixmap.hh" |
25 | #include "App.hh" | 25 | #include "App.hh" |
@@ -62,48 +62,6 @@ FbPixmap::~FbPixmap() { | |||
62 | free(); | 62 | free(); |
63 | } | 63 | } |
64 | 64 | ||
65 | void FbPixmap::copyArea(Drawable src, GC gc, | ||
66 | int src_x, int src_y, | ||
67 | int dest_x, int dest_y, | ||
68 | unsigned int width, unsigned int height) { | ||
69 | if (m_pm == 0 || src == 0 || gc == 0) | ||
70 | return; | ||
71 | XCopyArea(FbTk::App::instance()->display(), | ||
72 | src, m_pm, gc, | ||
73 | src_x, src_y, | ||
74 | width, height, | ||
75 | dest_x, dest_y); | ||
76 | } | ||
77 | |||
78 | void FbPixmap::fillRectangle(GC gc, int x, int y, | ||
79 | unsigned int width, unsigned int height) { | ||
80 | if (m_pm == 0 || gc == 0) | ||
81 | return; | ||
82 | XFillRectangle(FbTk::App::instance()->display(), | ||
83 | m_pm, gc, | ||
84 | x, y, | ||
85 | width, height); | ||
86 | } | ||
87 | |||
88 | void FbPixmap::drawRectangle(GC gc, int x, int y, | ||
89 | unsigned int width, unsigned int height) { | ||
90 | if (m_pm == 0 || gc == 0) | ||
91 | return; | ||
92 | XDrawRectangle(FbTk::App::instance()->display(), | ||
93 | m_pm, gc, | ||
94 | x, y, | ||
95 | width, height); | ||
96 | } | ||
97 | |||
98 | void FbPixmap::fillPolygon(GC gc, XPoint *points, int npoints, | ||
99 | int shape, int mode) { | ||
100 | if (m_pm == 0 || gc == 0 || points == 0 || npoints == 0) | ||
101 | return; | ||
102 | XFillPolygon(FbTk::App::instance()->display(), | ||
103 | m_pm, gc, points, npoints, | ||
104 | shape, mode); | ||
105 | } | ||
106 | |||
107 | FbPixmap &FbPixmap::operator = (const FbPixmap &the_copy) { | 65 | FbPixmap &FbPixmap::operator = (const FbPixmap &the_copy) { |
108 | copy(the_copy); | 66 | copy(the_copy); |
109 | return *this; | 67 | return *this; |
@@ -207,7 +165,6 @@ void FbPixmap::scale(unsigned int dest_width, unsigned int dest_height) { | |||
207 | static_cast<int>(src_x), | 165 | static_cast<int>(src_x), |
208 | static_cast<int>(src_y))); | 166 | static_cast<int>(src_y))); |
209 | XDrawPoint(dpy, new_pm.drawable(), gc, tx, ty); | 167 | XDrawPoint(dpy, new_pm.drawable(), gc, tx, ty); |
210 | |||
211 | 168 | ||
212 | } | 169 | } |
213 | } | 170 | } |