diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2012-07-21 16:57:24 +1000 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-07-21 16:57:24 +1000 |
| commit | 7dcbdef9d6ae95e7c9232418d12195582faaa54b (patch) | |
| tree | dbdbea4b99a427a3dec598bc49247e57b58654fa /cocoa | |
| parent | 38dc2df4119595f2a553cec3f9b51adaa160c973 (diff) | |
| download | scintilla-mirror-7dcbdef9d6ae95e7c9232418d12195582faaa54b.tar.gz | |
Scale factor implemented for RGBAImages to allow for high definition markers on retina displays.
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/PlatCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index d5cddb5b5..a4584528f 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -675,7 +675,7 @@ static CGImageRef ImageCreateFromRGBA(int width, int height, const unsigned char void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) { CGImageRef image = ImageCreateFromRGBA(width, height, pixelsImage, true); if (image) { - CGRect drawRect = CGRectMake(rc.left, rc.top, width, height); + CGRect drawRect = CGRectMake(rc.left, rc.top, rc.Width(), rc.Height()); CGContextDrawImage(gc, drawRect, image); CGImageRelease(image); } |
