From 065c6efa774ac144665f340f6c3578ab74e05c7b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 21 Dec 2002 19:54:15 +0000 Subject: otktimer works. imagecontrol is underway! --- otk_c/gccache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'otk_c/gccache.c') diff --git a/otk_c/gccache.c b/otk_c/gccache.c index f8b40f31..85ab9f9e 100644 --- a/otk_c/gccache.c +++ b/otk_c/gccache.c @@ -1,4 +1,4 @@ -// -*- mode: C; indent-tabs-mode: nil; -*- +// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- #include "../config.h" #include "gccache.h" @@ -40,7 +40,7 @@ void OtkGCCacheContext_Set(OtkGCCacheContext *self, XGCValues gcv; unsigned long mask; - self->pixel = gcv.foreground = OtkColor_Pixel(color); + self->pixel = gcv.foreground = color->pixel; self->function = gcv.function = function; self->subwindow = gcv.subwindow_mode = subwindow; self->linewidth = gcv.line_width = linewidth; @@ -156,7 +156,7 @@ static void OtkGCCache_InternalRelease(OtkGCCacheContext *ctx) OtkGCCacheItem *OtkGCCache_Find(OtkColor *color, XFontStruct *font, int function, int subwindow, int linewidth) { - const unsigned long pixel = OtkColor_Pixel(color); + const unsigned long pixel = color->pixel; const int screen = color->screen; const int key = color->red ^ color->green ^ color->blue; int k = (key % gccache->cache_size) * gccache->cache_buckets; -- cgit v1.2.3