diff options
author | Michael Jennings <mej@kainx.org> | 2002-04-21 18:07:28 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2002-04-21 18:07:28 +0000 |
commit | 5e2bad6411be6e728ad746cce94b37f5ad5e745a (patch) | |
tree | 2afd6c0010516591e56180b46d9ecc476c4cf11c | |
parent | 06d77d4d86794fd948cb9fb5f63626c8f2ebf825 (diff) | |
download | eterm-5e2bad6411be6e728ad746cce94b37f5ad5e745a.tar.gz |
Sun Apr 21 14:06:19 2002 Michael Jennings (mej)
A patch from Charles Clancy <tclancy@uiuc.edu> to fix shading on
Solaris.
SVN revision: 6159
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/pixmap.c | 11 |
2 files changed, 11 insertions, 5 deletions
@@ -4567,3 +4567,8 @@ Also removed '~' from the CUTCHARS compiled-in default. (It had already been removed from the themes.) Makes double-click selection of URL's easier. Requested by Laurence J. Lane <ljlane@debian.org>. ---------------------------------------------------------------------- +Sun Apr 21 14:06:19 2002 Michael Jennings (mej) + +A patch from Charles Clancy <tclancy@uiuc.edu> to fix shading on +Solaris. +---------------------------------------------------------------------- diff --git a/src/pixmap.c b/src/pixmap.c index 8ad4d07..e47438b 100644 --- a/src/pixmap.c +++ b/src/pixmap.c @@ -1775,11 +1775,12 @@ colormod_trans(Pixmap p, imlib_t *iml, GC gc, unsigned short w, unsigned short h #endif break; case 24: - /* FIXME: Is this test needed? */ - if (1 || (ximg->bits_per_pixel != 32)) { - shade_ximage_24(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm); - break; - } + if (ximg->bits_per_pixel != 32) { + shade_ximage_24(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm); + } else { + shade_ximage_24(ximg->data, ximg->bytes_per_line, w * 4 / 3, h, rm, gm, bm); + } + break; case 32: #ifdef HAVE_MMX shade_ximage_32_mmx(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm); |