[Re: [lazarus] cvs changes]

Marc Weustink Marc.Weustink at cuperus.nl
Fri Jan 21 09:10:34 EST 2000


+ From: Michal Bukovjan [mailto:mbukovjan at netscape.net]

+ I still claim that switching to AllocMem removed lots of
+ weird messages and the font displayed is now *CORRECT* -
+ this is what I see, so please if nothing changes for you,
+ don't change it back. I tried that and it only breaks the
+ font again.

Thats why I posted this message. I do see that somethings might not work on
other systems. I only want to understand why, otherwise you are only fixing
symptoms and not the real problem


+ I can also replace all appropriate Dispose calls with
+ FreeMem, to preserve the pairs, or maybe I could switch
+ back to New and zero the memory manually.

OK

+ About the HWND (HDC) = 0. Do you think the best way would be
+ to pregenerate a DC which would have correct properties
+ (for example in initialization part of gtkwinapi.pp unit)

I don't feel like creating a separate window for that, in fact we
have it already, it's our desktop.

+ or should we handle the HDC = 0
I gues you mean HWND here

+ in each call like GetDC, SelectObject, etc. separately?
I think so, only some functions wont support a DC from a hwdn=0

+ As for the resolution, this may be left from when I was
+ debugging and trying to figure out why the font displayed
+ is not like expected.

Ah, I thought so.

+ You are right and I will change it back to '*' if it is not
+ already done.

Or change it to '', since it is unused.

+ The reason I changed it is because you (or
+ the code :-) assumes that you are running at 120 dpi
+ resolution, which is not my case (I have 75).

The 120 was just a hack to get things running. I didn't have a PixelsPerInch
at that moment. The only thin now in my case is that the font is drawn way
to small. But thats I think a bug in my XServer (Xwin32 on a NT box with
large fonts).

Marc






More information about the Lazarus mailing list