From: bernie Date: Tue, 1 Aug 2006 12:23:39 +0000 (+0000) Subject: gfx_setClipRect(): Also define when CONFIG_GFX_VCOORDS is enabled; Extend documentation. X-Git-Tag: 1.0.0~564 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d6a114f7301c2274a936f507f7dd1a82bc70b496;p=bertos.git gfx_setClipRect(): Also define when CONFIG_GFX_VCOORDS is enabled; Extend documentation. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@677 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/gfx/bitmap.c b/gfx/bitmap.c index a40ba365..fd534375 100755 --- a/gfx/bitmap.c +++ b/gfx/bitmap.c @@ -16,6 +16,9 @@ /*#* *#* $Log$ + *#* Revision 1.12 2006/08/01 12:23:39 bernie + *#* gfx_setClipRect(): Also define when CONFIG_GFX_VCOORDS is enabled; Extend documentation. + *#* *#* Revision 1.11 2006/07/19 12:56:26 bernie *#* Convert to new Doxygen style. *#* @@ -240,7 +243,7 @@ void gfx_blitImage(Bitmap *dst, coord_t dxmin, coord_t dymin, const Image *image } -#if CONFIG_GFX_CLIPPING +#if CONFIG_GFX_CLIPPING || CONFIG_GFX_VCOORDS /** * Set the bitmap clipping rectangle to the specified coordinates. @@ -248,9 +251,14 @@ void gfx_blitImage(Bitmap *dst, coord_t dxmin, coord_t dymin, const Image *image * All drawing performed on the bitmap will be clipped inside this * rectangle. * + * The clipping rectangle is also used as a bounding box for the + * logical view of the virtual coordinate system. + * * \note Following the convention used for all other operations, the * top-left pixels of the rectangle are included, while the * bottom-right pixels are considered outside the clipping region. + * + * \see gfx_setViewRect */ void gfx_setClipRect(Bitmap *bm, coord_t minx, coord_t miny, coord_t maxx, coord_t maxy) {