From 58509ca8892f4a6f72f6ba0439f48669c1fa7324 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 30 Jan 2024 21:48:52 +0000 Subject: [PATCH] Warn when client chooses non-true-color pixel format This at least lets the user know why things failed. --- src/server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.c b/src/server.c index de71068..47ff118 100644 --- a/src/server.c +++ b/src/server.c @@ -923,6 +923,7 @@ static int on_client_set_pixel_format(struct nvnc_client* client) if (!fmt->true_colour_flag) { /* We don't really know what to do with color maps right now */ + nvnc_log(NVNC_LOG_WARNING, "Client requested non-true-color pixel format, but this is not implemented."); nvnc_client_close(client); return 0; }