Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(846)

Unified Diff: src/pkg/exp/gui/x11/conn.go

Issue 5136050: code review 5136050: This changes are due to change in the color.go file. Ne...
Patch Set: diff -r 6c5c19791fae https://code.google.com/p/go/ Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/Makefile ('k') | src/pkg/image/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/exp/gui/x11/conn.go
===================================================================
old mode 100644
new mode 100755
--- a/src/pkg/exp/gui/x11/conn.go
+++ b/src/pkg/exp/gui/x11/conn.go
@@ -99,9 +99,9 @@
}
for i := 0; i < nx; i += 4 {
// X11's order is BGRX, not RGBA.
- c.flushBuf1[i+0] = p[x+i+2]
- c.flushBuf1[i+1] = p[x+i+1]
- c.flushBuf1[i+2] = p[x+i+0]
+ c.flushBuf1[i+0] = p[x+i].B
+ c.flushBuf1[i+1] = p[x+i].G
+ c.flushBuf1[i+2] = p[x+i].R
}
x += nx
if _, err := c.w.Write(c.flushBuf1[:nx]); err != nil {
« no previous file with comments | « src/pkg/Makefile ('k') | src/pkg/image/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b