diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-10-15 08:33:25 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-10-15 08:42:44 (GMT) |
commit | d83761cf3ddd301545ebd9981b9d0547e636e3b4 (patch) | |
tree | e2d6618d6bf2c0fb37296c48922529f9acfdb2f5 /src/opengl/util/pattern_brush.glsl | |
parent | 9a3cdecc11e8dabaf2390eaab2c71e64f6521e69 (diff) | |
download | Qt-d83761cf3ddd301545ebd9981b9d0547e636e3b4.zip Qt-d83761cf3ddd301545ebd9981b9d0547e636e3b4.tar.gz Qt-d83761cf3ddd301545ebd9981b9d0547e636e3b4.tar.bz2 |
Fixed bitmap brushes and tiled bitmaps in the OpenGL1 paint engine.
Fixed drawing of bitmap brushes and tiled bitmaps so that they are
painted with the brush colour or pen colour instead of black.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/util/pattern_brush.glsl')
-rw-r--r-- | src/opengl/util/pattern_brush.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/util/pattern_brush.glsl b/src/opengl/util/pattern_brush.glsl index ac139b2..31702b8 100644 --- a/src/opengl/util/pattern_brush.glsl +++ b/src/opengl/util/pattern_brush.glsl @@ -17,7 +17,7 @@ vec4 brush() coords *= inv_brush_texture_size; - float alpha = texture2D(brush_texture, coords).r; + float alpha = 1.0 - texture2D(brush_texture, coords).r; return gl_Color * alpha; } |