Skip navigation.
 
mlRe: Drawing from secondary thread erases resize corner in window?
FROM : Hank Heijink
DATE : Wed Feb 27 22:41:33 2008

On Feb 27, 2008, at 2:40 PM, Hank Heijink wrote:

> - (void)updateView
> {
>     if (useSecondaryThread) {
>         if ([view lockFocusIfCanDraw]) {
>             [view drawFromSecondaryThread:view.bounds];
>             [[view window] flushWindow];
>             [view unlockFocus];
>         }
>     } else {
>         [view setNeedsDisplay:YES];
>     }
> }


I had my test app use a boolean to switch between drawing on the main 
thread and drawing on the secondary one. Meant to delete that part. 
Sorry. In this case, useSecondaryThread is obviously YES.

Hank

Hank Heijink
hank.<email_removed>

Related mailsAuthorDate
mlDrawing from secondary thread erases resize corner in window? Hank Heijink Feb 27, 20:40
mlRe: Drawing from secondary thread erases resize corner in window? Hank Heijink Feb 27, 22:41
mlRe: Drawing from secondary thread erases resize corner in window? Kyle Sluder Feb 28, 00:54
mlRe: Drawing from secondary thread erases resize corner in window? j o a r Feb 28, 01:02
mlRe: Drawing from secondary thread erases resize corner in window? Chris Suter Feb 28, 02:30
mlRe: Drawing from secondary thread erases resize corner in window? Hamish Allan Feb 28, 17:45
mlRe: Drawing from secondary thread erases resize corner in window? [solved, for now] Hank Heijink Feb 28, 18:45