Page 1 of 1

Update for DC_BitMapDraw

Posted: Wed Dec 01, 2010 5:58 am
by daan_vossebeld
Roger,

I found a small error in function DC_BitMapDraw of file _dcfunct.prg (eXpress 19254). In some situations the AUTOSCALE of DCBITMAP did not work correctly. If you agree, please replace the following lines:
Old: lines 676-686

Code: Select all

IF lAutoScale
  IF nAspect > 1
    IF nAspect > aTarget[3] / aTarget[4]
      aTarget[4] := aTarget[3] / nAspect
    ELSE
      aTarget[3] := aTarget[4] * nAspect
    ENDIF
  ELSE
    aTarget[3] := aTarget[4] * nAspect
  ENDIF
ENDIF
New:

Code: Select all

IF lAutoScale
  IF nAspect > aTarget[3] / aTarget[4]
    aTarget[4] := aTarget[3] / nAspect
  ELSE
    aTarget[3] := aTarget[4] * nAspect
  ENDIF
ENDIF
See the effect in the attached example.

Daan

Re: Update for DC_BitMapDraw

Posted: Wed Dec 01, 2010 9:15 am
by rdonnay
Daan -

Thank you for the fix.
I will add it to build 255.

Roger

Re: Update for DC_BitMapDraw

Posted: Sat Feb 05, 2011 1:59 pm
by daan_vossebeld
Roger,

Above mentioned fix has not been implemented in build 255.
You mentioned the fix in item 1139.

Daan

Re: Update for DC_BitMapDraw

Posted: Sat Feb 05, 2011 4:23 pm
by rdonnay
This is very strange. It appears that I made the change in my build 254 directory instead of the 255 build directory.

Rather than release another build, I am going to fix 255 and I will send you the changed files.

Sorry about that.

Re: Update for DC_BitMapDraw

Posted: Sat Feb 05, 2011 6:32 pm
by rdonnay
Ok, I fixed that and updated the install program.

Here is an updated dclipx.dll (compiled in Xbase++ 355) and _dcfunct.prg

http://donnay-software.com/subscribe/dclipx.dll
http://donnay-software.com/subscribe/_dcfunct.prg

Re: Update for DC_BitMapDraw

Posted: Sun Feb 06, 2011 1:22 am
by daan_vossebeld
It's Ok now. Thanks for the quick reply.