/*
    Copyright (C) 1995-2017, The AROS Development Team. All rights reserved.

    Desc:
*/

#include <hidd/gfx.h>
#include <cybergraphx/cybergraphics.h>

#include "cybergraphics_intern.h"

/*****************************************************************************

    NAME */
#include <proto/cybergraphics.h>

        AROS_LH1(void, UnLockBitMap,

/*  SYNOPSIS */
        AROS_LHA(APTR, Handle, A0),

/*  LOCATION */
        struct Library *, CyberGfxBase, 29, Cybergraphics)

/*  FUNCTION
        Releases exclusive access to a bitmap.

    INPUTS
        Handle - handle to the bitmap to unlock.

    RESULT
        None.

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO
        UnLockBitMapTagList(), LockBitMapTagList()
    INTERNALS

*****************************************************************************/
{
    AROS_LIBFUNC_INIT
    
    struct TagItem ultags[2] =
    {
            {UBMI_REALLYUNLOCK, TRUE    },
            {TAG_DONE, 0                        }
    };

    if (Handle)
        UnLockBitMapTagList(Handle, ultags);

    AROS_LIBFUNC_EXIT
} /* UnLockBitMap */
