Logo Search packages:      
Sourcecode: zebra version File versions  Download package

int zebra_window_redraw ( zebra_window_t window  )  [inline]

redraw the last image (exposure handler).

Definition at line 93 of file window.c.

References zebra_window_redraw().

Referenced by zebra::Window::redraw(), and zebra_window_redraw().

{
    if(window_lock(w))
        return(-1);
    if(!w->draw_image || !w->logo) {
        (void)window_unlock(w);
        return(_zebra_window_clear(w));
    }
    int rc;
    if(w->image)
        rc = w->draw_image(w, w->image);
    else {
        rc = w->draw_image(w, w->logo);
        if(w->image)
            w->logo->refcnt++;
    }
    if(!rc)
        rc = window_draw_overlay(w);
    (void)window_unlock(w);
    return(rc);
}


Generated by  Doxygen 1.6.0   Back to index