From 4dd74f2945436359f2a2fbb9f6836e0de3c2340d Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 5 Oct 2006 12:19:06 +0000 Subject: [PATCH] disabled the use of _BWidthBuffer_ until the app_server font backend implements B_BITMAP_SPACING. Small cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19004 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TextView.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/TextView.cpp b/src/kits/interface/TextView.cpp index 4fefdea091..17fe07c11b 100644 --- a/src/kits/interface/TextView.cpp +++ b/src/kits/interface/TextView.cpp @@ -54,7 +54,7 @@ using namespace std; #endif -#define USE_WIDTHBUFFER 1 +#define USE_WIDTHBUFFER 0 #define USE_DOUBLEBUFFERING 0 @@ -4416,10 +4416,9 @@ BTextView::HandleInputMethodLocationRequest() message.AddInt32("be:opcode", B_INPUT_METHOD_LOCATION_REQUEST); // Add the location of the UTF8 characters - float height = 0; - BPoint where; - while (offset < limit) { - where = PointAt(offset, &height); + while (offset < limit) { + float height; + BPoint where = PointAt(offset, &height); ConvertToScreen(&where); message.AddPoint("be:location_reply", where);