summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-08 07:23:35 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-08 07:23:35 +0000
commit402c0b5036b26a202a888ebd6314a50a4190e589 (patch)
treecc454963a9bfe4cccd51515e3beac757eebba008 /src/frames.c
parent9ed27d3dcb87fbbdf6991bb4b23dbf1d24039efb (diff)
downloadmetacity-402c0b5036b26a202a888ebd6314a50a4190e589.tar.gz
metacity-402c0b5036b26a202a888ebd6314a50a4190e589.tar.bz2
add code to save ACLOCAL_FLAGS
2002-01-08 Havoc Pennington <hp@pobox.com> * configure.in (ACLOCAL): add code to save ACLOCAL_FLAGS * src/frames.c (meta_frames_expose_event): max dither * src/testgradient.c (render_simple): change dither mode to MAX to avoid banding * src/theme.c: lose the gradient cache, and put in some initial data types for the theme format
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/frames.c b/src/frames.c
index cb93a23..84eedae 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -1771,12 +1771,12 @@ meta_frames_expose_event (GtkWidget *widget,
layout_gc = widget->style->fg_gc[GTK_STATE_SELECTED];
- gradient = meta_theme_get_gradient (META_GRADIENT_DIAGONAL,
- &selected_faded,
- &widget->style->bg[GTK_STATE_SELECTED],
- fgeom.title_rect.width,
- fgeom.title_rect.height);
-
+ gradient = meta_gradient_create_simple (fgeom.title_rect.width,
+ fgeom.title_rect.height,
+ &selected_faded,
+ &widget->style->bg[GTK_STATE_SELECTED],
+ META_GRADIENT_DIAGONAL);
+
if (gradient != NULL)
{
gdk_pixbuf_render_to_drawable (gradient,
@@ -1787,7 +1787,7 @@ meta_frames_expose_event (GtkWidget *widget,
fgeom.title_rect.y,
fgeom.title_rect.width,
fgeom.title_rect.height,
- GDK_RGB_DITHER_NORMAL,
+ GDK_RGB_DITHER_MAX,
0, 0);
g_object_unref (G_OBJECT (gradient));