Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b0d0de59
Commit
b0d0de59
authored
Aug 10, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build: update exp/draw/draw_test.go
R=nigeltao CC=golang-dev
https://golang.org/cl/1962041
parent
d7543094
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pkg/exp/draw/draw_test.go
src/pkg/exp/draw/draw_test.go
+2
-2
No files found.
src/pkg/exp/draw/draw_test.go
View file @
b0d0de59
...
@@ -137,7 +137,7 @@ loop:
...
@@ -137,7 +137,7 @@ loop:
continue
continue
}
}
// Draw the same combination onto the actual dst using the optimized DrawMask implementation.
// Draw the same combination onto the actual dst using the optimized DrawMask implementation.
DrawMask
(
dst
,
Rect
(
b
.
Min
.
X
,
b
.
Min
.
Y
,
b
.
Max
.
X
,
b
.
Max
.
Y
),
test
.
src
,
ZP
,
test
.
mask
,
ZP
,
test
.
op
)
DrawMask
(
dst
,
image
.
Rect
(
b
.
Min
.
X
,
b
.
Min
.
Y
,
b
.
Max
.
X
,
b
.
Max
.
Y
),
test
.
src
,
image
.
ZP
,
test
.
mask
,
image
.
ZP
,
test
.
op
)
// Check that the resultant pixel at (8, 8) matches what we expect
// Check that the resultant pixel at (8, 8) matches what we expect
// (the expected value can be verified by hand).
// (the expected value can be verified by hand).
if
!
eq
(
dst
.
At
(
8
,
8
),
test
.
expected
)
{
if
!
eq
(
dst
.
At
(
8
,
8
),
test
.
expected
)
{
...
@@ -164,7 +164,7 @@ func TestIssue836(t *testing.T) {
...
@@ -164,7 +164,7 @@ func TestIssue836(t *testing.T) {
b
.
Set
(
1
,
0
,
image
.
RGBAColor
{
0
,
0
,
5
,
5
})
b
.
Set
(
1
,
0
,
image
.
RGBAColor
{
0
,
0
,
5
,
5
})
b
.
Set
(
0
,
1
,
image
.
RGBAColor
{
0
,
5
,
0
,
5
})
b
.
Set
(
0
,
1
,
image
.
RGBAColor
{
0
,
5
,
0
,
5
})
b
.
Set
(
1
,
1
,
image
.
RGBAColor
{
5
,
0
,
0
,
5
})
b
.
Set
(
1
,
1
,
image
.
RGBAColor
{
5
,
0
,
0
,
5
})
Draw
(
a
,
Rect
(
0
,
0
,
1
,
1
),
b
,
Pt
(
1
,
1
))
Draw
(
a
,
image
.
Rect
(
0
,
0
,
1
,
1
),
b
,
image
.
Pt
(
1
,
1
))
if
!
eq
(
image
.
RGBAColor
{
5
,
0
,
0
,
5
},
a
.
At
(
0
,
0
))
{
if
!
eq
(
image
.
RGBAColor
{
5
,
0
,
0
,
5
},
a
.
At
(
0
,
0
))
{
t
.
Errorf
(
"Issue 836: want %v got %v"
,
image
.
RGBAColor
{
5
,
0
,
0
,
5
},
a
.
At
(
0
,
0
))
t
.
Errorf
(
"Issue 836: want %v got %v"
,
image
.
RGBAColor
{
5
,
0
,
0
,
5
},
a
.
At
(
0
,
0
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment