From 809c8a3d5cecf9485aea2fab56c7fc1b64f19ea4 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 23 Oct 2012 10:14:51 +0200 Subject: [PATCH] [DEBUG] pb in the font display condition --- Sources/libewol/ewol/font/TexturedFont.cpp | 3 +-- Sources/libewol/ewol/oObject/OObject.cpp | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) 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; }