[DEV] add reset scroll origin

This commit is contained in:
Edouard DUPIN 2017-04-17 22:23:17 +02:00
parent fea01d57c3
commit d552f2baa2
2 changed files with 8 additions and 1 deletions

View File

@ -243,7 +243,7 @@ bool ewol::resource::TexturedFont::addGlyph(const char32_t& _val) {
GlyphProperty tmpchar;
tmpchar.m_UVal = _val;
if (true == m_font[iii]->getGlyphProperty(m_size, tmpchar)) {
if (m_font[iii]->getGlyphProperty(m_size, tmpchar) == true) {
//EWOL_DEBUG("load char : '" << _val << "'=" << _val.get());
hasChange = true;
// change line if needed ...
@ -295,6 +295,7 @@ bool ewol::resource::TexturedFont::addGlyph(const char32_t& _val) {
}
if (hasChange == true) {
flush();
ewol::getContext().forceRedrawAll();
//egami::store(m_data, "fileFont.bmp"); // ==> for debug test only ...
}
return hasChange;

View File

@ -62,6 +62,12 @@ namespace ewol {
bool getSingleFinger() {
return m_singleFingerMode;
}
/**
* @brief Reset the scoll of the subWidget
*/
void resetScrollOrigin() {
m_originScrooled = vec2(0,0);
}
private:
bool m_fingerPresent[CALCULATE_SIMULTANEOUS_FINGER];
bool m_fingerScoolActivated;