From 03d797a13300445c747b3d99c35a6235ffa1ed90 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 20 Nov 2013 21:17:06 +0100 Subject: [PATCH] [DEBUG] remove multiple request update of display --- build | 2 +- sources/ewol/compositing/Text.cpp | 2 +- sources/ewol/widget/Widget.cpp | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build b/build index 99c6c86d..01f75930 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 99c6c86d9e0bf78897d8a954274f45df0606189f +Subproject commit 01f75930774fae683d70b50bd62b5681bceaca74 diff --git a/sources/ewol/compositing/Text.cpp b/sources/ewol/compositing/Text.cpp index 2e084ede..df4dce19 100644 --- a/sources/ewol/compositing/Text.cpp +++ b/sources/ewol/compositing/Text.cpp @@ -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) { diff --git a/sources/ewol/widget/Widget.cpp b/sources/ewol/widget/Widget.cpp index 2d37c9a1..70bd1c88 100644 --- a/sources/ewol/widget/Widget.cpp +++ b/sources/ewol/widget/Widget.cpp @@ -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(); }