Warn when client chooses non-true-color pixel format
This at least lets the user know why things failed.pull/110/head
parent
65fc23c88d
commit
58509ca889
|
@ -923,6 +923,7 @@ static int on_client_set_pixel_format(struct nvnc_client* client)
|
||||||
|
|
||||||
if (!fmt->true_colour_flag) {
|
if (!fmt->true_colour_flag) {
|
||||||
/* We don't really know what to do with color maps right now */
|
/* 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);
|
nvnc_client_close(client);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue