Fonts optimization
This commit is contained in:
@@ -115,9 +115,12 @@ void FullScreenDialog::checkEvents()
|
||||
|
||||
void FullScreenDialog::deleteLater()
|
||||
{
|
||||
#if !defined(HARDWARE_TOUCH)
|
||||
if (previousFocus) {
|
||||
previousFocus->setFocus();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (running) {
|
||||
running = false;
|
||||
}
|
||||
|
||||
@@ -113,10 +113,10 @@ int getTextWidth(const char * s, int len, LcdFlags flags)
|
||||
if (c >= 0x101)
|
||||
c -= 1;
|
||||
c += CJK_FIRST_LETTER_INDEX;
|
||||
result += getFontPatternWidth(specs, c);
|
||||
result += getFontPatternWidth(specs, c) + 1;
|
||||
}
|
||||
else if (c >= 0x20) {
|
||||
result += getCharWidth(c, specs);
|
||||
result += getCharWidth(c, specs) + 1;
|
||||
}
|
||||
|
||||
++s;
|
||||
|
||||
Reference in New Issue
Block a user