* Source/x11/XGServerWindow.m (ALPHA_THRESHOLD): removed duplicate of

definition.
This commit is contained in:
Sergii Stoian 2020-01-14 10:52:59 +02:00
parent 9e298b2142
commit d1dd3f0f5c
2 changed files with 2 additions and 3 deletions

View file

@ -7,6 +7,7 @@
(_createAppIconPixmaps): use swapColors() and remove unused code.
(restrictWindow:toImage:): use alphaMaskForImage().
(imagecursor:::): use swapColors() and remove unused code.
(ALPHA_THRESHOLD): removed duplicate of definition.
2020-01-13 Sergii Stoian <stoyan255@gmail.com>

View file

@ -2742,7 +2742,7 @@ alphaMaskForImage(Display *xdpy, Drawable draw, const unsigned char *data,
// Convert RGBA unpacked to ARGB packed.
// Packed ARGB values are layed out as ARGB on big endian systems
// and as BGRA on low endian systems
// and as BGRA on little endian systems
void
swapColors(unsigned char *image_data, int width, int height,
int samples_per_pixel, int bytes_per_row)
@ -4077,8 +4077,6 @@ static BOOL cursor_hidden = NO;
#if !HAVE_XCURSOR
#define ALPHA_THRESHOLD 158
Pixmap
xgps_cursor_image(Display *xdpy, Drawable draw, const unsigned char *data,
int w, int h, int colors, XColor *fg, XColor *bg)