summaryrefslogtreecommitdiff
path: root/otk/surface.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-20 07:07:13 +0000
committerDana Jansens <danakj@orodu.net>2003-01-20 07:07:13 +0000
commit0348a2f3abd2334f5f5812c5fb45c1b4fffb46a5 (patch)
treef19e07f899a3e390dbc8f2484d6b1426defcbb47 /otk/surface.cc
parentcfd8f9a65848c5e7b0514999581512069a4f98f6 (diff)
add rendercolor class, with a cache of gcs for the colors
Diffstat (limited to 'otk/surface.cc')
-rw-r--r--otk/surface.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/otk/surface.cc b/otk/surface.cc
index 99fa82b0..4f6ef386 100644
--- a/otk/surface.cc
+++ b/otk/surface.cc
@@ -7,7 +7,7 @@
#include "surface.hh"
#include "display.hh"
#include "screeninfo.hh"
-#include "gccache.hh"
+#include "rendercolor.hh"
extern "C" {
#include <X11/Xutil.h>
@@ -28,13 +28,12 @@ Surface::~Surface()
destroyObjects();
}
-void Surface::setPixmap(const Color &color)
+void Surface::setPixmap(const RenderColor &color)
{
if (_pixmap == None)
createObjects();
- Pen p(color);
- XFillRectangle(**display, _pixmap, p.gc(), 0, 0,
+ XFillRectangle(**display, _pixmap, color.gc(), 0, 0,
_size.x(), _size.y());
}