DisplayLink Forum

DisplayLink Forum (https://displaylink.org/forum/index.php)
-   Embedded Applications (https://displaylink.org/forum/forumdisplay.php?f=41)
-   -   Bug fix: dlo_grfx.c function cmd_stripe24 with width exactly 256 pixels (https://displaylink.org/forum/showthread.php?t=64334)

Jim2220 01-27-2016 05:14 AM

Bug fix: dlo_grfx.c function cmd_stripe24 with width exactly 256 pixels
 
I had a problem calling dlo_copy_host_bmp with a width of exactly 256 bytes. The resulting display had only one line. The line with my comment fixed it.

end = base8 + (BYTES_PER_8BPP * width); // line 724 of dlo_grfx.c
/* Jim adds this guess */ rem=width;
for (; base8 < end; base8 += BYTES_PER_8BPP * RAW_MAX_PIXELS)

Is libdlo under active support?


All times are GMT. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.