From 280165d922732e13d21958ae645f654812f25cfc Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 10 Mar 2023 12:30:47 +0000 Subject: Fix display device test failure with chunky separations. Both planar and chunky separations need our own fill_rectangle_hl_color routine. --- devices/gdevdsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devices') diff --git a/devices/gdevdsp.c b/devices/gdevdsp.c index 7790dd0e8..e279d5874 100644 --- a/devices/gdevdsp.c +++ b/devices/gdevdsp.c @@ -1593,9 +1593,9 @@ display_create_buf_device(gx_device **pbdev, gx_device *target, int y, } else { gs_make_mem_device(mdev, mdproto, mem, (color_usage == NULL ? 1 : 0), target); - if (ddev->nFormat & DISPLAY_COLORS_SEPARATION) - mdev->procs.fill_rectangle_hl_color = display_fill_rectangle_hl_color; } + if (ddev->nFormat & DISPLAY_COLORS_SEPARATION) + mdev->procs.fill_rectangle_hl_color = display_fill_rectangle_hl_color; mdev->width = target->width; mdev->band_y = y; mdev->log2_align_mod = target->log2_align_mod; -- cgit v1.2.1