提交 2f0f2068 编写于 作者: I iamyhw@gmail.com

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1676 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 825a978c
...@@ -227,10 +227,13 @@ static void rtgui_dc_hw_draw_point(struct rtgui_dc* self, int x, int y) ...@@ -227,10 +227,13 @@ static void rtgui_dc_hw_draw_point(struct rtgui_dc* self, int x, int y)
dc = (struct rtgui_dc_hw*) self; dc = (struct rtgui_dc_hw*) self;
x = x + dc->owner->extent.x1; x = x + dc->owner->extent.x1;
#if (0) /* Please yourself to decide whether to use it*/
if(x < dc->owner->extent.x1 || x >= dc->owner->extent.x2) return; if(x < dc->owner->extent.x1 || x >= dc->owner->extent.x2) return;
#endif
y = y + dc->owner->extent.y1; y = y + dc->owner->extent.y1;
#if (0)
if(y < dc->owner->extent.y1 || y >= dc->owner->extent.y2) return; if(y < dc->owner->extent.y1 || y >= dc->owner->extent.y2) return;
#endif
/* draw this point */ /* draw this point */
dc->hw_driver->ops->set_pixel(&(dc->owner->gc.foreground), x, y); dc->hw_driver->ops->set_pixel(&(dc->owner->gc.foreground), x, y);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册