diff options
author | Phil Dennis-Jordan <phil@philjordan.eu> | 2024-06-24 12:10:40 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-07-22 12:47:28 +0400 |
commit | b4189dbf805c297fdd6dd228ffab673d44560bcd (patch) | |
tree | 63e46836fe33afc7038cc5a596e2bd956d466055 /audio/trace-events | |
parent | cc455d7eef7f1c7be58eddc9d76ae1a99d293b65 (diff) |
Cursor: 8 -> 1 bit alpha downsampling improvement
Mouse cursors with 8 bit alpha were downsampled to 1-bit opacity maps by
turning alpha values of 255 into 1 and everything else into 0. This
means that mostly-opaque pixels ended up completely invisible.
This patch changes the behaviour so that only pixels with less than 50%
alpha (0-127) are treated as transparent when converted to 1-bit alpha.
This greatly improves the subjective appearance of anti-aliased mouse
cursors, such as those used by macOS, when using a front-end UI without
support for alpha-blended cursors, such as some VNC clients.
Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20240624101040.82726-1-phil@philjordan.eu>
Diffstat (limited to 'audio/trace-events')
0 files changed, 0 insertions, 0 deletions