From 7d16fc1669c2cb900b8dfd351fe9d40251e82558 Mon Sep 17 00:00:00 2001 From: Lars Birkemose Date: Fri, 30 Jan 2015 15:15:12 +0100 Subject: [PATCH] Better positioning --- Extensions/CCBusyNode/CCBusyNode.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Extensions/CCBusyNode/CCBusyNode.m b/Extensions/CCBusyNode/CCBusyNode.m index b6b33a0..1e121d7 100644 --- a/Extensions/CCBusyNode/CCBusyNode.m +++ b/Extensions/CCBusyNode/CCBusyNode.m @@ -102,9 +102,7 @@ - (void)setColor:(CCColor *)color - (void)draw:(CCRenderer *)renderer transform:(const GLKMatrix4 *)transform { - // convert position to openGL coordinates and position indicator - CGPoint pos = [self positionInPoints]; - pos = [[CCDirector sharedDirector] convertToGL:pos]; + CGPoint pos = [self convertToWindowSpace:pos]; _indicator.frame = CGRectMake(pos.x, pos.y, 0, 0); // [super draw:renderer transform:transform];