diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-21 19:54:15 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-21 19:54:15 +0000 |
| commit | 065c6efa774ac144665f340f6c3578ab74e05c7b (patch) | |
| tree | 80e8d61f5d14db5cf7f66fbe58cfcc126e052751 /otk_c/gccache.c | |
| parent | 4c9bf6c9a1f2fb3531cec2917576f3d2364b4bf3 (diff) | |
otktimer works. imagecontrol is underway!
Diffstat (limited to 'otk_c/gccache.c')
| -rw-r--r-- | otk_c/gccache.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
