bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34470] -[NSBitmapImageRep initWithFocusedViewRect:] broken


From: Eric Wasylishen
Subject: [bug #34470] -[NSBitmapImageRep initWithFocusedViewRect:] broken
Date: Tue, 04 Oct 2011 01:58:41 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3

Update of bug #34470 (project gnustep):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Looks like there are major differences between GS and Cocoa's
lockFocus/unlockFocus :-(

Well, GS doesn't draw the image into the cache. It should be reasonably easy
to fix.
You can work around it by drawing the image yourself for now, like this:


NSImage *theImg = [[NSImage alloc] initWithContentsOfURL:_url];
NSImageRep *rep = [theImg bestRepresentationForDevice: nil];
[theImg lockFocus]; 
[rep drawInRect:NSMakeRect(0,0,[theImg size].width, [theImg size].height)];
… rest of the code unchanged.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34470>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]