On Tue, 18 Apr 2006 21:15:26 +0200
darekm <[EMAIL PROTECTED]> wrote:

> Hi
>   attached patch is fo tLabel
>    under GTK2 paint for tLabel is invoked many times, because GTK2 has 
> enabled rendering, painted tex show very bad after some piece of time.
>   for multiline text space between lines are to huge
>   setup size and color of tLabel are make up.

-      LineHeight:=GetTextHeight(DCTextMetric);
+      LineHeight:=DCTextMetric.TextMetric.tmHeight;

The purpose of GetTextHeight is to return the correct height.
If you think, a function returns the wrong value, then please fix the
function.
In this case: the old work for me much better, than this new approach.

The rest will take time to check.

Mattias


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to