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

int zebra_window_draw ( zebra_window_t window,
zebra_image_t image 
)

draw a new image into the output window.

Definition at line 115 of file window.c.

References zebra_window_draw().

Referenced by zebra::Window::clear(), zebra::Window::draw(), zebra_window_attach(), and zebra_window_draw().

{
    if(window_lock(w))
        return(-1);
    if(!w->draw_image)
        img = NULL;
    if(w->image)
        _zebra_image_refcnt(w->image, -1);
    w->image = img;
    if(img)
        img->refcnt++;
    return(window_unlock(w));
}


Generated by  Doxygen 1.6.0   Back to index