From fced6df12318a25105f1a16912c05da296dbbd15 Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Sun, 19 Feb 2012 18:52:17 +0100 Subject: [PATCH] error android compilation for the reintrepreted cast --- jni/Android.mk | 3 ++- jni/edn/Buffer/BufferText.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jni/Android.mk b/jni/Android.mk index 2a817ad..7144448 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -20,7 +20,8 @@ LOCAL_CFLAGS := -D__PLATFORM__Android \ -DEWOL_USE_FREE_TYPE \ -DETK_DEBUG_LEVEL=3 \ -DEDN_DEBUG_LEVEL=3 \ - -DDATA_IN_APK + -DDATA_IN_APK \ + -frtti include $(BUILD_SHARED_LIBRARY) diff --git a/jni/edn/Buffer/BufferText.cpp b/jni/edn/Buffer/BufferText.cpp index 932a5e5..8fc87c5 100644 --- a/jni/edn/Buffer/BufferText.cpp +++ b/jni/edn/Buffer/BufferText.cpp @@ -272,11 +272,11 @@ void BufferText::CursorDisplay(ewol::OObject2DColored* OOColored, int32_t x, int OOColored->Rectangle( x, y, letterWidth, letterHeight, clip); } else { // TODO : Clipping - if (x >= clip.x) { + //if (x >= clip.x) { OOColored->Line( (int32_t)(x-CURSOR_WIDTH), (int32_t)(y) , (int32_t)(x+CURSOR_WIDTH), (int32_t)(y) , CURSOR_THICKNESS); OOColored->Line( (int32_t)(x-CURSOR_WIDTH), (int32_t)(y+letterHeight-CURSOR_THICKNESS), (int32_t)(x+CURSOR_WIDTH), (int32_t)(y+letterHeight-CURSOR_THICKNESS), CURSOR_THICKNESS); OOColored->Line( (int32_t)(x) , (int32_t)(y) , (int32_t)(x) , (int32_t)(y+letterHeight-CURSOR_THICKNESS), CURSOR_THICKNESS); - } + //} } }