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
This commit is contained in:
Michael Jennings 2002-04-21 18:07:28 +00:00
parent 06d77d4d86
commit 5e2bad6411
2 changed files with 11 additions and 5 deletions

View File

@ -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.
----------------------------------------------------------------------

View File

@ -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);