From b8e36ea5452b9164b7c77071abaf735620948e01 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Wed, 5 Jan 2011 15:51:26 +0000 Subject: [PATCH] fix compiler error. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1235 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/common/region.c | 2 +- components/rtgui/include/rtgui/region.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/rtgui/common/region.c b/components/rtgui/common/region.c index bcb8bacb2e..d5a849c4dc 100644 --- a/components/rtgui/common/region.c +++ b/components/rtgui/common/region.c @@ -175,7 +175,7 @@ void rtgui_region_init_rect(rtgui_region_t *region, region->data = RT_NULL; } -void rtgui_region_init_with_extents(rtgui_region_t *region, rtgui_rect_t *extents) +void rtgui_region_init_with_extents(rtgui_region_t *region, const rtgui_rect_t *extents) { region->extents = *extents; region->data = RT_NULL; diff --git a/components/rtgui/include/rtgui/region.h b/components/rtgui/include/rtgui/region.h index 5a2362892c..3b292f7350 100644 --- a/components/rtgui/include/rtgui/region.h +++ b/components/rtgui/include/rtgui/region.h @@ -47,7 +47,7 @@ typedef enum void rtgui_region_init(rtgui_region_t *region); void rtgui_region_init_rect(rtgui_region_t *region, int x, int y, unsigned int width, unsigned int height); -void rtgui_region_init_with_extents(rtgui_region_t *region, rtgui_rect_t *extents); +void rtgui_region_init_with_extents(rtgui_region_t *region, const rtgui_rect_t *extents); void rtgui_region_fini (rtgui_region_t *region); void rtgui_region_translate (rtgui_region_t *region, int x, int y);