~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/samples/GLFullScreen/Texture.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
                        NSImage src;
36
36
                        CGImage image;
37
37
                        CGContext context = null;
 
38
                        RectangleF rect = RectangleF.Empty;
38
39
                        
39
40
                        data = new byte[TEXTURE_WIDTH * TEXTURE_HEIGHT * 4];
40
41
                        
41
42
                        src = new NSImage (path);
42
43
                        
43
 
                        image = src.AsCGImage (RectangleF.Empty, null, null);
 
44
                        image = src.AsCGImage (ref rect, null, null);
44
45
                        width = image.Width;
45
46
                        height = image.Height;
46
47