1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session-simple-splash-remove-shadows.patch

28 lines
1.1 KiB
Diff
Raw Normal View History

diff -urNp xfce4-session-4.8.0.orig/engines/simple/simple.c xfce4-session-4.8.0/engines/simple/simple.c
--- xfce4-session-4.8.0.orig/engines/simple/simple.c 2011-01-16 17:38:20.000000000 +0100
+++ xfce4-session-4.8.0/engines/simple/simple.c 2011-02-02 18:44:31.000000000 +0100
@@ -213,7 +213,6 @@ static void
simple_next (XfsmSplashEngine *engine, const gchar *text)
{
Simple *simple = (Simple *) engine->user_data;
- GdkColor shcolor;
gint tw, th, tx, ty;
pango_layout_set_text (simple->layout, text, -1);
@@ -231,15 +230,6 @@ simple_next (XfsmSplashEngine *engine, c
gdk_gc_set_clip_rectangle (simple->gc, &simple->textbox);
- /* draw shadow */
- shcolor.red = (simple->fgcolor.red + simple->bgcolor.red) / 2;
- shcolor.green = (simple->fgcolor.green + simple->bgcolor.green) / 2;
- shcolor.blue = (simple->fgcolor.blue + simple->bgcolor.blue) / 2;
- shcolor.red = (shcolor.red + shcolor.green + shcolor.blue) / 3;
- shcolor.green = shcolor.red;
- shcolor.blue = shcolor.red;
-
- gdk_gc_set_rgb_fg_color (simple->gc, &shcolor);
gdk_draw_layout (simple->pixmap, simple->gc,
tx + 2, ty + 2, simple->layout);