From 4b6b4d6f9de152e08d6125ed12486338c062e9f7 Mon Sep 17 00:00:00 2001 From: xfnw Date: Thu, 19 Aug 2021 14:42:26 -0400 Subject: [PATCH] framebuffer colors seem to be in a different order than documented? --- fbflut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbflut.c b/fbflut.c index b932964..2c9f500 100644 --- a/fbflut.c +++ b/fbflut.c @@ -38,8 +38,8 @@ void *handle_connection(void *socket_desc) { int ypos = atoi(safestrtok(NULL, " \n")); char colorcode[8]; strncpy(colorcode, safestrtok(NULL, " \n"), 8); - if (strlen(colorcode) < 2*fb_bytes) - strcat(colorcode, "00"); + //if (strlen(colorcode) < 2*fb_bytes) + // strcat(colorcode, "00"); int color = (int)strtol(colorcode, NULL, 16); if (xpos >= 0 && ypos >= 0 && xpos <= fb_width && ypos <= fb_height) {