X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fmain-cocoa.m;h=3cc5dff74b4ea9fec2a909f92badfe13eabc7395;hb=91e7667e351266c70c2462f00d263918a5c1771d;hp=31eebf6cd6e439e33cb8d353ff04539b7bb12f11;hpb=29789fc29dfcca4493e7e986ad02b53dbca76ebd;p=hengbandforosx%2Fhengbandosx.git diff --git a/src/main-cocoa.m b/src/main-cocoa.m index 31eebf6cd..3cc5dff74 100644 --- a/src/main-cocoa.m +++ b/src/main-cocoa.m @@ -3291,7 +3291,6 @@ static int compare_nsrect_yorigin_greater(const void *ap, const void *bp) NSGraphicsContext *nsctx = nil; CGContextRef ctx = 0; NSFont* screenFont = nil; - term *old = 0; int graf_width = 0, graf_height = 0; int overdraw_row = 0, overdraw_max = 0; wchar_t blank = 0; @@ -3299,8 +3298,6 @@ static int compare_nsrect_yorigin_greater(const void *ap, const void *bp) rect.origin.x + rect.size.width > self.borderSize.width && rect.origin.y < bottomY && rect.origin.y + rect.size.height > self.borderSize.height) { - old = Term; - Term_activate(self->terminal); nsctx = [NSGraphicsContext currentContext]; ctx = [nsctx graphicsPort]; screenFont = [self.angbandViewFont screenFont]; @@ -3326,9 +3323,6 @@ static int compare_nsrect_yorigin_greater(const void *ap, const void *bp) if (overdraw_row && invalidCount > 1) { sortedRects = malloc(invalidCount * sizeof(NSRect)); if (sortedRects == 0) { - if (old != 0) { - Term_activate(old); - } NSException *exc = [NSException exceptionWithName:@"OutOfMemory" reason:@"sorted rects in drawRect" userInfo:nil]; @@ -3675,9 +3669,6 @@ static int compare_nsrect_yorigin_greater(const void *ap, const void *bp) } free(sortedRects); - if (old != 0) { - Term_activate(old); - } } - (BOOL)isOrderedIn