adding color picking on iOS
This commit is contained in:
@@ -157,6 +157,7 @@ int t_count = 0;
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated
|
||||
{
|
||||
App::I.redraw = true;
|
||||
[self resignFirstResponder];
|
||||
[self registerForKeyboardNotifications];
|
||||
}
|
||||
@@ -235,6 +236,8 @@ int t_count = 0;
|
||||
|
||||
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect
|
||||
{
|
||||
if (!App::I.redraw)
|
||||
return;
|
||||
App::I.clear();
|
||||
App::I.update(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user