# HG changeset patch # User Mychaela Falconia # Date 1517207095 0 # Node ID e56e74e8b730cd2b334c76555042f1b5a2996efa # Parent 4b6acb68b851088d4595cdb393e0da3b65f5688b R2D C139 C-Sample emulation: fixed off-by-one error that was causing the garbage in the upper left corner of the display and also caused everything to be shifted by one pixel diff -r 4b6acb68b851 -r e56e74e8b730 src/cs/drivers/drv_app/r2d/lcds/c139/r2d_task_i.c --- a/src/cs/drivers/drv_app/r2d/lcds/c139/r2d_task_i.c Sun Jan 28 21:12:22 2018 +0000 +++ b/src/cs/drivers/drv_app/r2d/lcds/c139/r2d_task_i.c Mon Jan 29 06:24:55 2018 +0000 @@ -45,8 +45,8 @@ UINT16 yword, ybit; /* mirroring */ - x = R2D_WIDTH - x; - y = R2D_HEIGHT - y; + x = R2D_WIDTH - 1 - x; + y = R2D_HEIGHT - 1 - y; yword = y >> 5; ybit = y & 31; p = fb + x * R2D_MWHEIGHT + yword;