From: Keith Monahan <[email protected]> Invalidate screen on colormap change, as it affects every pixel on screen. This fixes VUE GUI on HP-UX 9.05.
Signed-off-by: Keith Monahan <[email protected]> Signed-off-by: Helge Deller <[email protected]> --- hw/display/artist.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/display/artist.c b/hw/display/artist.c index 288d466ec6..300ad40e72 100644 --- a/hw/display/artist.c +++ b/hw/display/artist.c @@ -855,6 +855,12 @@ static int vram_bit_write(ARTISTState *s, uint32_t pos, int posy, vram_write_bufidx(s) == ARTIST_BUFFER_CURSOR2) { artist_invalidate_cursor(s); } + + if (vram_write_bufidx(s) == ARTIST_BUFFER_CMAP) { + /* A colormap change affects every pixel on screen. */ + artist_invalidate(s); + } + return pos; } -- 2.54.0
