Skip to content

Commit

Permalink
Fix qualcomms bs.
Browse files Browse the repository at this point in the history
Signed-off-by: V10lator <v10lator@myway.de>
  • Loading branch information
V10lator committed Nov 19, 2015
1 parent b450b82 commit 99ca207
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions fbcat.c
Expand Up @@ -168,9 +168,14 @@ static void dump_video_memory(
}
break;
}
row[x * 3 + 0] = get_color(pixel, &info->red, colormap->red);
row[x * 3 + 1] = get_color(pixel, &info->green, colormap->green);
row[x * 3 + 2] = get_color(pixel, &info->blue, colormap->blue);

/* V10lator: For some reason (only qualcomm might know) the pixels are f*cked up:
* Transparent = Red,
* Blue = Green,
* Green = Blue */
row[x * 3 + 0] = get_color(pixel, &info->transp, colormap->red);
row[x * 3 + 1] = get_color(pixel, &info->blue, colormap->green);
row[x * 3 + 2] = get_color(pixel, &info->green, colormap->blue);
}
if (fwrite(row, 1, info->xres * 3, fp) != info->xres * 3)
posix_error("write error");
Expand Down

0 comments on commit 99ca207

Please sign in to comment.