diff --git a/Sources/libewol/ewol/font/TexturedFont.cpp b/Sources/libewol/ewol/font/TexturedFont.cpp index 3dffd5e0..d14f6b5f 100644 --- a/Sources/libewol/ewol/font/TexturedFont.cpp +++ b/Sources/libewol/ewol/font/TexturedFont.cpp @@ -351,7 +351,6 @@ int32_t ewol::TexturedFont::Draw(Vector2D textPos, // Clipping and drawing area - if( dxB < clipping.x || dxA > clipping.x + clipping.w) { @@ -399,7 +398,7 @@ int32_t ewol::TexturedFont::Draw(Vector2D textPos, } } if( dxB <= dxA - || dyD <= dyC) { + || dyD >= dyC) { // nothing to do ... } else { /* Bitmap position diff --git a/Sources/libewol/ewol/oObject/OObject.cpp b/Sources/libewol/ewol/oObject/OObject.cpp index 20edfd5e..2e9eb2dd 100644 --- a/Sources/libewol/ewol/oObject/OObject.cpp +++ b/Sources/libewol/ewol/oObject/OObject.cpp @@ -36,6 +36,10 @@ ewol::OObject::OObject(void) m_hasClipping = false; m_scaling.x = 1.0; m_scaling.y = 1.0; + m_clipping.x = 0; + m_clipping.y = 0; + m_clipping.w = 1024; + m_clipping.h = 1024; m_nbLoadedTime = 1; }