Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: screen/EALCD.cpp
- Revision:
- 6:4fe6f365cbeb
- Parent:
- 4:f8f7f4f9c58d
- Child:
- 7:6cf21b018420
--- a/screen/EALCD.cpp Tue Apr 27 23:13:21 2010 +0000
+++ b/screen/EALCD.cpp Thu May 06 23:32:14 2010 +0000
@@ -606,20 +606,16 @@
return;
}
- EAImage img;
+ EAImage* img = _font._data();
EAFont::EACharacter detail;
- img.load(_font.path());
- // Treat the font image as a mask to allow pen colour to be used for the text.
- img.setMask(true);
-
for (int i = 0; i < strlen(text); i++)
{
- if (_font.getCharacter(text[i], detail) == true)
+ if (_font._getCharacter(text[i], detail) == true)
{
- img.setX(x+detail.xOffset);
- img.setY(y+detail.yOffset);
- img.paint(*this, detail.x, detail.y, detail.width, detail.height);
+ img->setX(x+detail.xOffset);
+ img->setY(y+detail.yOffset);
+ img->paint(*this, detail.x, detail.y, detail.width, detail.height);
x += detail.xAdvance;
} else {