diff options
| author | [email protected] <[email protected]> | 2011-08-22 03:44:57 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-08-22 03:44:57 +0000 |
| commit | 2f0f2068b96495a93d7341531a32c56af41b038c (patch) | |
| tree | af7e0dd5660a17746e130df66afe7b59e5924335 /components | |
| parent | 825a978c75fab28b45f8faad734f93c7bbb3dfc4 (diff) | |
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1676 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/rtgui/common/dc_hw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/rtgui/common/dc_hw.c b/components/rtgui/common/dc_hw.c index 23f7c0aefb..5b6670bfd1 100644 --- a/components/rtgui/common/dc_hw.c +++ b/components/rtgui/common/dc_hw.c @@ -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; 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; +#endif y = y + dc->owner->extent.y1; +#if (0) if(y < dc->owner->extent.y1 || y >= dc->owner->extent.y2) return; - +#endif /* draw this point */ dc->hw_driver->ops->set_pixel(&(dc->owner->gc.foreground), x, y); } |
