From a4ec77e3ffe57b9799bbf8dce67ec6e7643ee2dc Mon Sep 17 00:00:00 2001 From: xianjimli Date: Thu, 18 Jul 2019 16:56:09 +0800 Subject: [PATCH] apply gles patch --- src/lcd/lcd_vgcanvas.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lcd/lcd_vgcanvas.inc b/src/lcd/lcd_vgcanvas.inc index bad7e3b17..9c8bf2709 100644 --- a/src/lcd/lcd_vgcanvas.inc +++ b/src/lcd/lcd_vgcanvas.inc @@ -71,8 +71,8 @@ static ret_t lcd_vgcanvas_draw_vline(lcd_t* lcd, xy_t x, xy_t y, wh_t h) { vgcanvas_t* canvas = LCD(lcd)->canvas; vgcanvas_begin_path(canvas); - vgcanvas_move_to(canvas, x, y); - vgcanvas_line_to(canvas, x, y + h); + vgcanvas_move_to(canvas, x + 0.5f, y); + vgcanvas_line_to(canvas, x + 0.5f, y + h); vgcanvas_set_line_width(canvas, 1); vgcanvas_set_stroke_color(canvas, lcd->stroke_color); vgcanvas_stroke(canvas); @@ -84,8 +84,8 @@ static ret_t lcd_vgcanvas_draw_hline(lcd_t* lcd, xy_t x, xy_t y, wh_t w) { vgcanvas_t* canvas = LCD(lcd)->canvas; vgcanvas_begin_path(canvas); - vgcanvas_move_to(canvas, x, y); - vgcanvas_line_to(canvas, x + w, y); + vgcanvas_move_to(canvas, x, y + 0.5f); + vgcanvas_line_to(canvas, x + w, y + 0.5f); vgcanvas_set_line_width(canvas, 1); vgcanvas_set_stroke_color(canvas, lcd->stroke_color); vgcanvas_stroke(canvas); @@ -108,7 +108,7 @@ static ret_t lcd_vgcanvas_stroke_rect(lcd_t* lcd, xy_t x, xy_t y, wh_t w, wh_t h vgcanvas_t* canvas = LCD(lcd)->canvas; vgcanvas_begin_path(canvas); - vgcanvas_rect(canvas, x, y, w, h); + vgcanvas_rect(canvas, x + 0.5f, y + 0.5f, w, h); vgcanvas_set_line_width(canvas, 1); vgcanvas_set_stroke_color(canvas, lcd->stroke_color); vgcanvas_stroke(canvas);