[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[709] trunk/FuseGenerator/JWSpectrumScreen/ J
Brought to you by:
fredm
From: <fr...@us...> - 2012-11-23 12:25:11
|
Revision: 709 http://sourceforge.net/p/fuse-for-macosx/code/709 Author: fredm Date: 2012-11-23 12:25:10 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Undo overzealous modernisation. Modified Paths: -------------- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m Modified: trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m =================================================================== --- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2012-11-23 12:20:54 UTC (rev 708) +++ trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2012-11-23 12:25:10 UTC (rev 709) @@ -342,19 +342,19 @@ NSUInteger length = [zxScreen length]; if(length) { screen0 = [[[NSData alloc] initWithBytes:[zxScreen bytes] length:SCREEN_BITMAP_SIZE] autorelease]; - dictionary[@"Screen0"] = screen0; + [dictionary setObject:screen0 forKey:@"Screen0"]; if(mode == ScreenModeSinclair || mode == ScreenModeTimexHiCol) { assert((mode == ScreenModeSinclair && length == SCREEN_STANDARD_BYTES) || (mode == ScreenModeTimexHiCol && length == SCREEN_TIMEX_HI_COL_BYTES)); attributes = [[[NSData alloc] initWithBytes:[zxScreen bytes] + SCREEN_BITMAP_SIZE length:length - SCREEN_BITMAP_SIZE] autorelease]; - dictionary[@"Attributes"] = attributes; + [dictionary setObject:attributes forKey:@"Attributes"]; } else if( mode == ScreenModeTimexHiRes) { assert(length == SCREEN_TIMEX_HI_RES_BYTES); screen1 = [[[NSData alloc] initWithBytes:[zxScreen bytes] + SCREEN_BITMAP_SIZE length:SCREEN_BITMAP_SIZE] autorelease]; out255 = [[[NSData alloc] initWithBytes:[zxScreen bytes] + 2 * SCREEN_BITMAP_SIZE length:1] autorelease]; - dictionary[@"Screen1"] = screen1; - dictionary[@"Out255"] = out255; + [dictionary setObject:screen1 forKey:@"Screen1"]; + [dictionary setObject:out255 forKey:@"Out255"]; } else { // Wtf? assert(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |