summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2002-04-21 18:07:28 +0000
committerMichael Jennings <mej@kainx.org>2002-04-21 18:07:28 +0000
commit5e2bad6411be6e728ad746cce94b37f5ad5e745a (patch)
tree2afd6c0010516591e56180b46d9ecc476c4cf11c
parent06d77d4d86794fd948cb9fb5f63626c8f2ebf825 (diff)
downloadeterm-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--ChangeLog5
-rw-r--r--src/pixmap.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d295fa..c9e28a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);