fbset: fix rgba parsing
In commit b5c7220e7b
"fbset: respect rgba configuration lines in fb.modes"
I somehow managed to swap the offset/length markers around.
The man page for fb.modes says it should be offset/length
not length/offset as I was accidentally parsing it.
As my fb.modes file was also reversed I didn't notice
until I tried someone elses fb.modes file. Mea culpa.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c29021e2a5
commit
52f2f37477
@ -349,10 +349,10 @@ static int read_mode_db(struct fb_var_screeninfo *base, const char *fn,
|
|||||||
int transp_offset, transp_length;
|
int transp_offset, transp_length;
|
||||||
|
|
||||||
sscanf(p, "%d/%d,%d/%d,%d/%d,%d/%d",
|
sscanf(p, "%d/%d,%d/%d,%d/%d,%d/%d",
|
||||||
&red_offset, &red_length,
|
&red_length, &red_offset,
|
||||||
&green_offset, &green_length,
|
&green_length, &green_offset,
|
||||||
&blue_offset, &blue_length,
|
&blue_length, &blue_offset,
|
||||||
&transp_offset, &transp_length);
|
&transp_length, &transp_offset);
|
||||||
base->red.offset = red_offset;
|
base->red.offset = red_offset;
|
||||||
base->red.length = red_length;
|
base->red.length = red_length;
|
||||||
base->red.msb_right = 0;
|
base->red.msb_right = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user