X-Sharp / FabTools

Port to X# of most of FabTools Libraries
Apache License 2.0
2 stars 3 forks source link

Height and width in StretchDraw methods #4

Open christianschmid200272 opened 8 months ago

christianschmid200272 commented 8 months ago

Hello,

FabTools/FabTools/FabPaintLib/FabPaintLib.prg

In StretchDraw and StretchDrawDC, the width and height values were added with the x and y position values. I think this is the reason why it is not displaying correctly, if I change it without the extra values it is ok.

fforay commented 8 months ago

Hi Christian, so you mean that : SELF:ShowDC( hDC, x, y, x+w, y+h ) Should be SELF:ShowDC( hDC, x, y, w, h )

Right ? Thanks for the information.

I will correct it.

christianschmid200272 commented 8 months ago

Hi Fabrice, yes right, from SELF:ShowDC( hDC, x, y, x+w, y+h ) in my opinion should be SELF:ShowDC( hDC, x, y, w, h ) become.