summaryrefslogtreecommitdiff
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorAdrian Robert <Adrian.B.Robert@gmail.com>2009-01-21 22:28:45 +0000
committerAdrian Robert <Adrian.B.Robert@gmail.com>2009-01-21 22:28:45 +0000
commitd3810c2118652605cf7258a6a7213fa8034e93e1 (patch)
tree1a17c30cbb9f233a32e26421ecba6579a3ff5302 /src/nsimage.m
parente336ab49268667a7e6049e157b0f78e08dd5f7d4 (diff)
downloademacs-d3810c2118652605cf7258a6a7213fa8034e93e1.tar.gz
* nsimage.m (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color values in onTiger section. * nsterm.m (ns_defined_color): Fix settings of the XColor variable fields: red,green,blue scale to 2-byte, pixel's components to 1-byte. (Bug#1663)
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index f99a9d2a03e..b13c12903ad 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -453,7 +453,8 @@ static EmacsImage *ImageList = nil;
else if (onTiger)
{
[bmRep setColor:
- [NSColor colorWithCalibratedRed: r green: g blue: b alpha: a]
+ [NSColor colorWithCalibratedRed: (r/255.0) green: (g/255.0)
+ blue: (b/255.0) alpha: (a/255.0)]
atX: x y: y];
}
}