Skip to content

Commit d4ab72f

Browse files
author
zhourenjian
committed
Fixed a bug that getting a system color returns a wrong color
1 parent 7150c26 commit d4ab72f

File tree

1 file changed

+1
-1
lines changed
  • sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/graphics

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/graphics/Device.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public Color getSystemColor (int id) {
611611
return new Color(this,
612612
pixel & 0x000000FF,
613613
(pixel & 0x0000FF00) >> 8,
614-
(pixel & 0x00FF00) >> 16);
614+
(pixel & 0x00FF0000) >> 16);
615615
//return Color.win32_new (this, pixel);
616616
}
617617

0 commit comments

Comments
 (0)