CID 157: Fix usage of *covers instead of cover which in this case indeed is NULL
and should have lead to a crash. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27481 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*
|
||||
* DrawingMode implementing B_OP_SELECT on B_RGBA32.
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DRAWING_MODE_SELECT_H
|
||||
@@ -194,7 +195,7 @@ blend_color_hspan_select(int x, int y, unsigned len,
|
||||
} else if (cover) {
|
||||
do {
|
||||
if (colors->a > 0 && compare(p, high, low, &color)) {
|
||||
BLEND_SELECT(p, color.red, color.green, color.blue, *covers);
|
||||
BLEND_SELECT(p, color.red, color.green, color.blue, cover);
|
||||
}
|
||||
p += 4;
|
||||
++colors;
|
||||
|
||||
Reference in New Issue
Block a user