if (TextLength * FONT_CELL_WIDTH + PosX > CompImage->Width)
TextLength = (CompImage->Width - PosX) / FONT_CELL_WIDTH;
// load the font
if (FontImage == NULL)
FontImage = egPrepareEmbeddedImage(&egemb_font, TRUE);
if (TextLength * FONT_CELL_WIDTH + PosX > CompImage->Width)
TextLength = (CompImage->Width - PosX) / FONT_CELL_WIDTH;
// load the font
if (FontImage == NULL)
FontImage = egPrepareEmbeddedImage(&egemb_font, TRUE);