mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 12:08:16 +08:00
apply gles patch
This commit is contained in:
parent
18be2a289b
commit
a4ec77e3ff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user