summaryrefslogtreecommitdiff
path: root/src/drivers/Android/Fl_Android_Graphics_Font.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-18 13:44:37 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-18 13:44:37 +0000
commit5900d824e93be44a852741ca093d88023e2a516a (patch)
tree1441a0d02e432f046ba0cd83cbc1ef64badf8a61 /src/drivers/Android/Fl_Android_Graphics_Font.cxx
parent7ff40388cbf2b4f1441efbc3b30f35017cab9304 (diff)
Android: Fixed bug when deleting complex clipping areas
Tested FLTK schemes - nice! Fixed crashbug in timer Fixed crashbug in mouse handler git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Graphics_Font.cxx')
-rw-r--r--src/drivers/Android/Fl_Android_Graphics_Font.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/Android/Fl_Android_Graphics_Font.cxx b/src/drivers/Android/Fl_Android_Graphics_Font.cxx
index 7f17e8911..55136e73e 100644
--- a/src/drivers/Android/Fl_Android_Graphics_Font.cxx
+++ b/src/drivers/Android/Fl_Android_Graphics_Font.cxx
@@ -341,7 +341,9 @@ Fl_Android_Font_Descriptor::~Fl_Android_Font_Descriptor()
*/
float Fl_Android_Font_Descriptor::get_advance(uint32_t c)
{
- // TODO: should we use the cahced value in the Bytemap?
+ // TODO: should we use the cached value in the Bytemap?
+ // Yes, we should, because if FLTK requests the width of a character, it is
+ // more than likely to render that character soon after.
return pFontSource->get_advance(c, size);
}