[Qt] qt tshapes arm]

Terry Kemp klc at klc.net.nz
Thu Jun 19 05:05:53 CEST 2008


> 
> Maybe some fpc troubles? We are calling translate so:
> 
> TQtDeviceContext(DC).translate(P.X, P.Y);
> 
> where P.X and P.Y are integers but translate arguments are doubles. So 
> maybe fpc wrongly converts integers to double? Can you check what do you 
> get in TQtDeviceContext.translate. I mean arguments dx and dy.
> 
> Btw, what fpc version do you use?
> 
> Best regards,
> Paul Ishenin.
> 

OK, I will check the translate args.
here it is... all OK

[WinAPI SetWindowOrgEx] DC: 40F91380 NewX: -62 NewY: -1
integer = 4
pointer = 4
cardinal = 4
[WinAPI SetWindowOrgEx] MATRIX dx:  4.05437852603306E-308
[WinAPI SetWindowOrgEx] MATRIX dy:  4.05437905653200E-308
[WinAPI SetWindowOrgEx] MATRIX m11:  4.05437905238748E-308
[WinAPI SetWindowOrgEx] MATRIX m12:  4.05437852603306E-308
[WinAPI SetWindowOrgEx] MATRIX m21:  4.05437852603306E-308
[WinAPI SetWindowOrgEx] MATRIX m22:  4.05437905238748E-308
Trace: > [WinAPI GetWindowOrgEx]
Trace: < [WinAPI GetWindowOrgEx] QMATRIX_DX 4.04931968806739E-308
Trace: < [WinAPI GetWindowOrgEx] QMATRIX_DY4.06088085163552E-308
Trace: < [WinAPI GetWindowOrgEx] Result=(x=0,y=0)
[WinAPI SetWindowOrgEx] DC: 40F91380 P.X: 0 P.Y: 0
[WinAPI SetWindowOrgEx] OldPoint: -4133068C
TQtDeviceContext.drawRect() x1: 62 y1: 1 w: 10 h: 10
TQtDeviceContext.translate() dx:  6.20000000000000E+001 dy:  1.00000000000000E+000
TQtDeviceContext.drawRect() x1: 0 y1: 0 w: 12 h: 12
***** [WinAPI TQtWidgetSet.IntersectClipRect] 
Trace:> [WinAPI SelectObject] DC=40F91380 GDIObj=40EEAE40
TQtDeviceContext.pen() TQtDeviceContext.setPen() TQtDeviceContext.pen() Trace:< [WinAPI SelectObject] Result=40EEA900 ObjectType=Pen
[WinAPI MoveToEx] DC:40F91380 X:0 Y:0


I'm compiling the lazarus project with latest svn 
fpc-arm-2.3.1 (softfloat eabi)

This is the only problem I have.

It still seems strange the calls to matrix_dy etc return crazy (float)
numbers. I will see what they are in hex. there is a pattern there.

thanks again

Terry 




More information about the Qt mailing list