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:
parent
06d77d4d86
commit
5e2bad6411
|
@ -4567,3 +4567,8 @@ Also removed '~' from the CUTCHARS compiled-in default. (It had
|
||||||
already been removed from the themes.) Makes double-click selection
|
already been removed from the themes.) Makes double-click selection
|
||||||
of URL's easier. Requested by Laurence J. Lane <ljlane@debian.org>.
|
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.
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
11
src/pixmap.c
11
src/pixmap.c
|
@ -1775,11 +1775,12 @@ colormod_trans(Pixmap p, imlib_t *iml, GC gc, unsigned short w, unsigned short h
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
/* FIXME: Is this test needed? */
|
if (ximg->bits_per_pixel != 32) {
|
||||||
if (1 || (ximg->bits_per_pixel != 32)) {
|
shade_ximage_24(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm);
|
||||||
shade_ximage_24(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm);
|
} else {
|
||||||
break;
|
shade_ximage_24(ximg->data, ximg->bytes_per_line, w * 4 / 3, h, rm, gm, bm);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
#ifdef HAVE_MMX
|
#ifdef HAVE_MMX
|
||||||
shade_ximage_32_mmx(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm);
|
shade_ximage_32_mmx(ximg->data, ximg->bytes_per_line, w, h, rm, gm, bm);
|
||||||
|
|
Loading…
Reference in New Issue