[DEBUG] remove multiple request update of display
This commit is contained in:
parent
09b7f9a749
commit
03d797a133
2
build
2
build
@ -1 +1 @@
|
||||
Subproject commit 99c6c86d9e0bf78897d8a954274f45df0606189f
|
||||
Subproject commit 01f75930774fae683d70b50bd62b5681bceaca74
|
@ -298,7 +298,7 @@ void ewol::Text::setFont(std::string _fontName, int32_t _fontSize) {
|
||||
}
|
||||
_fontName += ":";
|
||||
_fontName += std::to_string(_fontSize);
|
||||
EWOL_WARNING("plop : " << _fontName << " size=" << _fontSize << " result :" << _fontName);
|
||||
EWOL_VERBOSE("plop : " << _fontName << " size=" << _fontSize << " result :" << _fontName);
|
||||
// link to new one
|
||||
m_font = ewol::TexturedFont::keep(_fontName);
|
||||
if (m_font == NULL) {
|
||||
|
@ -349,11 +349,17 @@ void ewol::Widget::periodicCallEnable(float _callInSecond) {
|
||||
}
|
||||
|
||||
void ewol::Widget::markToRedraw(void) {
|
||||
if (m_needRegenerateDisplay == true) {
|
||||
return;
|
||||
}
|
||||
m_needRegenerateDisplay = true;
|
||||
getWidgetManager().markDrawingIsNeeded();
|
||||
}
|
||||
|
||||
void ewol::Widget::setZoom(float _newVal) {
|
||||
if (m_zoom == _newVal) {
|
||||
return;
|
||||
}
|
||||
m_zoom = etk_avg(0.0000001,_newVal,1000000.0);
|
||||
markToRedraw();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user