All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] curses: fix attribute passing
@ 2019-10-04  3:53 Matthew Kilgore
  2019-10-04  3:53 ` [PATCH v2 1/2] curses: use the bit mask constants provided by curses Matthew Kilgore
  2019-10-04  3:53 ` [PATCH v2 2/2] curses: correctly pass the color pair to setcchar() Matthew Kilgore
  0 siblings, 2 replies; 6+ messages in thread
From: Matthew Kilgore @ 2019-10-04  3:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: samuel.thibault, Matthew Kilgore, philmd, Gerd Hoffmann

This patch set fixes up ui/curses.c. A previous change to ui/curses.c,
commit 962cf8fd4fae ("ui/curses: manipulate cchar_t with standard curses
functions"), did not correctly pass the attributes from the chtype to
`setcchar()`.

The biggest issue this caused is that colors no longer work when using
the curses display, it instead renders everything in white on black.
This was fixed by correctly passing the color pair number to setcchar().
I also fixed two spots where 0xff was used instead of the bit mask
constants that are part of the curses API.

changes in v2:
- Split into two patches, one dealing with the attribute masks, and one
  dealing with correctly passing the color pair number.

Thanks,
Matthew Kilgore

Matthew Kilgore (2):
  curses: use the bit mask constants provided by curses
  curses: correctly pass the color pair to setcchar()

 ui/curses.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
2.23.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-13 15:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04  3:53 [PATCH v2 0/2] curses: fix attribute passing Matthew Kilgore
2019-10-04  3:53 ` [PATCH v2 1/2] curses: use the bit mask constants provided by curses Matthew Kilgore
2019-10-04  8:57   ` Philippe Mathieu-Daudé
2019-10-13 15:34   ` Samuel Thibault
2019-10-04  3:53 ` [PATCH v2 2/2] curses: correctly pass the color pair to setcchar() Matthew Kilgore
2019-10-13 15:34   ` Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.