2 things I noticed today (wxWidgets 2.9 latest SVN)
Stephan Rose
kermos at somrek.net
Fri Sep 14 16:51:39 PDT 2007
On Fri, 2007-09-14 at 02:59 +0200, Vadim Zeitlin wrote:
> On Fri, 14 Sep 2007 01:02:45 +0200 Stephan Rose <kermos at somrek.net> wrote:
>
> SR> First:
>
> It's usually better to use separate posts for separate problems, it's
> easier to discuss them like this (and allows you to give each thread a more
> descriptive subject). So I'll reply only to this part here and the other
> one in a separate message.
>
> SR> I noticed some weird behavior today when using GetPixelSize() while
> SR> testing my Windows build.
> SR>
> SR> Under GTK, GetPixelSize returns a positive value for the font height as
> SR> I would expect.
> SR>
> SR> Under windows however, it returns a negative value.
> SR>
> SR> My current workaround is to wrap the returned height with abs() and
> SR> things seem to work fine.
>
> This is almost right, there is a small difference between positive and
> negative font height values under Windows but I'm not really sure if it's
> important. But wxWidgets should do it itself, of course. I think just
> adding abs() around lf.lfHeight in wxNativeFontInfo::GetPixelSize() should
> be enough to fix it, could you please check if it is?
I tested this and as far as I can tell everything appears to work ok.
Stephan
More information about the wx-users
mailing list