Change 20100914-maxcarlson-R by maxcarl...@friendly on 2010-09-14 13:57:00 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Only offset strokes for drawviews with aliaslines==true
Bugs Fixed: LPP-8780 - Strokes don't appear crisp in dhtml drawviews
Technical Reviewer: hminksy
QA Reviewer: ptw
Details: fill() always calls __updateFillStyle(), and passes __playpath() an
offset of 0. Compute stroke offset when lineWidth changes and update
globalAlpha in in __updateLineStyle(). __playpath() expects an explicit
offset, returning early if the path was already drawn with the specific offset,
and uses translate() to do the offsetting instead of doing it manually.
clipPath() uses an explicit 0 offset. stroke() always calls
__updateLineStyle() and passes the stroke offset computed there.
Tests: test/drawing/drawing.lzx?lzr=dhtml shows aliased lines for the blue,
green and white boxes in the second row.
Files:
M lps/components/extensions/drawview.lzx
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100914-maxcarlson-R.tar