From bce5f88f3db588084c39eedc9905bb5d46587c72 Mon Sep 17 00:00:00 2001 From: Richard Mortimer Date: Sat, 10 Apr 1999 16:37:43 +0000 Subject: [PATCH] Added missing *IsDark entries into PALETTE_Driver instance initialisation. --- graphics/ttydrv/init.c | 3 ++- graphics/ttydrv/palette.c | 8 ++++++++ graphics/x11drv/init.c | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/graphics/ttydrv/init.c b/graphics/ttydrv/init.c index 680419ad209..ce8c0824e42 100644 --- a/graphics/ttydrv/init.c +++ b/graphics/ttydrv/init.c @@ -102,7 +102,8 @@ BITMAP_DRIVER TTYDRV_BITMAP_Driver = PALETTE_DRIVER TTYDRV_PALETTE_Driver = { TTYDRV_PALETTE_SetMapping, - TTYDRV_PALETTE_UpdateMapping + TTYDRV_PALETTE_UpdateMapping, + TTYDRV_PALETTE_IsDark }; /* FIXME: Adapt to the TTY driver. Copied from the X11 driver */ diff --git a/graphics/ttydrv/palette.c b/graphics/ttydrv/palette.c index 55cd2fa6bb6..c8bf91777b3 100644 --- a/graphics/ttydrv/palette.c +++ b/graphics/ttydrv/palette.c @@ -39,3 +39,11 @@ int TTYDRV_PALETTE_UpdateMapping(PALETTEOBJ *palPtr) { return 0; } + +/*********************************************************************** + * TTYDRV_PALETTE_IsDark + */ +int TTYDRV_PALETTE_IsDark(int pixel) +{ + return 0; +} diff --git a/graphics/x11drv/init.c b/graphics/x11drv/init.c index dace94921ca..ac34bfc49e6 100644 --- a/graphics/x11drv/init.c +++ b/graphics/x11drv/init.c @@ -116,7 +116,8 @@ BITMAP_DRIVER X11DRV_BITMAP_Driver = PALETTE_DRIVER X11DRV_PALETTE_Driver = { X11DRV_PALETTE_SetMapping, - X11DRV_PALETTE_UpdateMapping + X11DRV_PALETTE_UpdateMapping, + X11DRV_PALETTE_IsDark }; DeviceCaps X11DRV_DevCaps = {