framebuffer colors seem to be in a different order than documented?
This commit is contained in:
parent
e2713e00e0
commit
4b6b4d6f9d
1 changed files with 2 additions and 2 deletions
4
fbflut.c
4
fbflut.c
|
@ -38,8 +38,8 @@ void *handle_connection(void *socket_desc) {
|
||||||
int ypos = atoi(safestrtok(NULL, " \n"));
|
int ypos = atoi(safestrtok(NULL, " \n"));
|
||||||
char colorcode[8];
|
char colorcode[8];
|
||||||
strncpy(colorcode, safestrtok(NULL, " \n"), 8);
|
strncpy(colorcode, safestrtok(NULL, " \n"), 8);
|
||||||
if (strlen(colorcode) < 2*fb_bytes)
|
//if (strlen(colorcode) < 2*fb_bytes)
|
||||||
strcat(colorcode, "00");
|
// strcat(colorcode, "00");
|
||||||
int color = (int)strtol(colorcode, NULL, 16);
|
int color = (int)strtol(colorcode, NULL, 16);
|
||||||
|
|
||||||
if (xpos >= 0 && ypos >= 0 && xpos <= fb_width && ypos <= fb_height) {
|
if (xpos >= 0 && ypos >= 0 && xpos <= fb_width && ypos <= fb_height) {
|
||||||
|
|
Loading…
Reference in a new issue