summaryrefslogtreecommitdiff
path: root/otk/truerendercontrol.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/truerendercontrol.cc
parentcfd8f9a65848c5e7b0514999581512069a4f98f6 (diff)
add rendercolor class, with a cache of gcs for the colors
Diffstat (limited to 'otk/truerendercontrol.cc')
-rw-r--r--otk/truerendercontrol.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/otk/truerendercontrol.cc b/otk/truerendercontrol.cc
index bd413cff..dc52bc37 100644
--- a/otk/truerendercontrol.cc
+++ b/otk/truerendercontrol.cc
@@ -9,6 +9,8 @@
#include "screeninfo.hh"
#include "surface.hh"
+#include "rendercolor.hh"
+
extern "C" {
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
@@ -127,7 +129,8 @@ void TrueRenderControl::drawBackground(Surface& sf,
im->data = (char*) data;
- sf.setPixmap(im);
+// sf.setPixmap(im);
+ sf.setPixmap(RenderColor(_screen, 0xff, 0xff, 0));
delete [] im->data;
im->data = NULL;