summaryrefslogtreecommitdiff
path: root/libs/ui/InputReader.cpp
diff options
context:
space:
mode:
author Xavier Ducrohet <xav@android.com> 2010-12-21 01:33:04 -0800
committer Xavier Ducrohet <xav@android.com> 2010-12-21 10:43:18 -0800
commit63fd87113cea6abec97a6cd966e090e9b590fc3b (patch)
tree1cbdd623cdac465fc3a648b4afc93b4212a213f7 /libs/ui/InputReader.cpp
parentd348b6eaa98e23cb38d90906df109aaa2d20ea7f (diff)
LayoutLib: Misc rendering fixes.
- always set up the stroke. Paint may not have the proper style when drawing lines. stroke should still be setup. - Fixed vertical linear gradient. Old code generated a gradient ratio of NaN - Fixed alpha rendering when using shaders. In that case the alpha channel from the paint color should be used in conjunction with the shader. - Fixed miter limit. Java expects the value to be multiplied by the stroke width - Fixed support for drawing ALPHA_8 bitmaps. Java2D doesn't have bitmaps with only alpha channels, so we keep using ARGB bitmaps but when drawing them into a bitmap we erase the color information. Change-Id: I4f04341fc843e3f7dadd1fdbf709b11a4f1e24b9
Diffstat (limited to 'libs/ui/InputReader.cpp')
0 files changed, 0 insertions, 0 deletions