[DEBUG] remove multiple request update of display

This commit is contained in:
Edouard DUPIN 2013-11-20 21:17:06 +01:00
parent 09b7f9a749
commit 03d797a133
3 changed files with 8 additions and 2 deletions

2
build

@ -1 +1 @@
Subproject commit 99c6c86d9e0bf78897d8a954274f45df0606189f
Subproject commit 01f75930774fae683d70b50bd62b5681bceaca74

View File

@ -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) {

View File

@ -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();
}