Commit 4d6d634e authored by Rahix's avatar Rahix
Browse files

fix(display): Fix epic_disp_rect() off-by-one regression

Make the new ctx based implementation behave just like the old one.
This means _including_ the yend row and xend column.

This fixes the G-Watch and DigiClk not looking as they should.
parent e5661f12
...@@ -251,7 +251,11 @@ int epic_disp_rect( ...@@ -251,7 +251,11 @@ int epic_disp_rect(
rgb565_to_rgb888(color, &r, &g, &b); rgb565_to_rgb888(color, &r, &g, &b);
ctx_rectangle( ctx_rectangle(
epicardium_ctx, xstart, ystart, xend - xstart, yend - ystart epicardium_ctx,
xstart,
ystart,
xend - xstart + 1,
yend - ystart + 1
); );
switch (fillstyle) { switch (fillstyle) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment