projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d72c1
)
gfx_blit_P(): use RASTER_SIZE() to calculate raster size
author
aleph
<aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Jan 2006 21:55:43 +0000
(21:55 +0000)
committer
aleph
<aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Jan 2006 21:55:43 +0000
(21:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@487
38d2e660
-2303-0410-9eaa-
f027e97ec537
gfx/bitmap.c
patch
|
blob
|
history
diff --git
a/gfx/bitmap.c
b/gfx/bitmap.c
index f0681ea4238f71917ff7dfedfeb0cf42cdf8cc75..36c5d00ebcdcbc57b3d0caf0cf6d9b01f8b5051a 100755
(executable)
--- a/
gfx/bitmap.c
+++ b/
gfx/bitmap.c
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/01/24 21:55:43 aleph
+ *#* gfx_blit_P(): use RASTER_SIZE() to calculate raster size
+ *#*
*#* Revision 1.1 2006/01/24 02:17:49 bernie
*#* Split out gfx.c into bitmap.c and line.c.
*#*
@@
-83,7
+86,7
@@
void gfx_bitmapClear(Bitmap *bm)
*/
void gfx_blit_P(Bitmap *bm, const pgm_uint8_t *raster)
{
- memcpy_P(bm->raster, raster,
(bm->height / 8) * bm->width
);
+ memcpy_P(bm->raster, raster,
RASTER_SIZE(bm->width, bm->height)
);
}
#endif /* CPU_HARVARD */