git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
diseqc 1.1 should be working now
[enigma2.git]
/
lib
/
gdi
/
font.h
diff --git
a/lib/gdi/font.h
b/lib/gdi/font.h
index a17fee71dc1c75c4e64a7b2e0ef0eba01b842013..c55b8f46dee102245d6abd45702648baa1dae561 100644
(file)
--- a/
lib/gdi/font.h
+++ b/
lib/gdi/font.h
@@
-79,7
+79,7
@@
class eLCD;
class eTextPara: public iObject
{
class eTextPara: public iObject
{
-DECLARE_REF;
+DECLARE_REF
(eTextPara)
;
private:
ePtr<Font> current_font, replacement_font;
FT_Face current_face, replacement_face;
private:
ePtr<Font> current_font, replacement_font;
FT_Face current_face, replacement_face;
@@
-130,16
+130,23
@@
public:
return boundBox;
}
return boundBox;
}
+
+ const int size() const
+ {
+ return glyphs.size();
+ }
const eRect& getGlyphBBox(int num) const
{
const eRect& getGlyphBBox(int num) const
{
+ assert(num >= 0);
+ assert(num < (int)glyphs.size());
return glyphs[num].bbox;
}
};
class Font: public iObject
{
return glyphs[num].bbox;
}
};
class Font: public iObject
{
-DECLARE_REF;
+DECLARE_REF
(Font)
;
public:
FTC_Image_Desc font;
fontRenderClass *renderer;
public:
FTC_Image_Desc font;
fontRenderClass *renderer;