Commit 609549c9 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

bugfix

parent 107e6aaf
......@@ -112,7 +112,12 @@ RCT_NOT_IMPLEMENTED(-init)
- (void)setAutoRedraw:(BOOL)autoRedraw
{
_autoRedraw = autoRedraw;
if (autoRedraw) {
[self performSelectorOnMainThread:@selector(syncAutoRedraw) withObject:nil waitUntilDone:false];
}
- (void)syncAutoRedraw
{
if (_autoRedraw) {
if (!animationTimer)
animationTimer =
[NSTimer scheduledTimerWithTimeInterval:1.0/60.0
......@@ -304,7 +309,7 @@ RCT_NOT_IMPLEMENTED(-init)
} else {
imgData = nil;
}
contentData[i] = imgData;
if (imgData) contentData[i] = imgData;
}
_contentData = contentData;
_deferredRendering = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment