Fix window refresh events emission on OS X

This commit is contained in:
Camilla Berglund
2015-08-31 22:22:22 +02:00
parent 67eadf1e97
commit 4b4cb9ce66
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -214,7 +214,6 @@ static int translateKey(unsigned int key)
_glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
_glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height);
_glfwInputWindowDamage(window);
}
- (void)windowDidMove:(NSNotification *)notification
@@ -476,6 +475,10 @@ static int translateKey(unsigned int key)
const NSRect fbRect = convertRectToBacking(window, contentRect);
_glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
}
- (void)drawRect:(NSRect)rect
{
_glfwInputWindowDamage(window);
}