Warn when client chooses non-true-color pixel format

This at least lets the user know why things failed.
pull/110/head
Andri Yngvason 2024-01-30 21:48:52 +00:00
parent 65fc23c88d
commit 58509ca889
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}