X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gfx%2Fbitmap.c;h=e99a254d0f440dca8b28ebacd5e77f4b6c7c971c;hb=c49c99e64ee64ad490b2aea2d6c6d8f9f6d225db;hp=01ae977a105d4782e14910d989c3e22abc1c71c9;hpb=39108834d9c102712d6c11830ca9b9fb5b098d19;p=bertos.git diff --git a/gfx/bitmap.c b/gfx/bitmap.c index 01ae977a..e99a254d 100755 --- a/gfx/bitmap.c +++ b/gfx/bitmap.c @@ -16,6 +16,12 @@ /*#* *#* $Log$ + *#* Revision 1.7 2006/03/07 22:18:04 bernie + *#* Correctly compute text width for prop fonts; Make styles a per-bitmap attribute. + *#* + *#* Revision 1.6 2006/02/23 11:17:16 bernie + *#* Documentation fixes. + *#* *#* Revision 1.5 2006/02/15 09:10:15 bernie *#* Implement prop fonts; Fix algo styles. *#* @@ -70,6 +76,7 @@ void gfx_bitmapInit(Bitmap *bm, uint8_t *raster, coord_t w, coord_t h) #if CONFIG_GFX_TEXT gfx_setFont(bm, &default_font); + bm->styles = 0; #endif #if CONFIG_GFX_CLIPPING @@ -117,8 +124,13 @@ void gfx_blit_P(Bitmap *bm, const pgm_uint8_t *raster) * * \note Using the same bitmap for \a src and \a dst is unsupported. * - * \param dst Bitmap where the operation writes - * + * \param dst Bitmap where the operation writes. + * \param rect The (xmin;ymin) coordinates provide the top/left offset + * for drawing in the destination bitmap. If the source + * bitmap is larger than the rectangle, drawing is clipped. + * \param src Bitmap containing the source pixels. + * \param srcx Starting X offset in the source bitmap. + * \param srcy Starting Y offset in the source bitmap. */ void gfx_blit(Bitmap *dst, const Rect *rect, const Bitmap *src, coord_t srcx, coord_t srcy) {