/* gui-clip.m,
 */

#include <allegro.h>
#include "gui-clip.h"


void save_clip(BITMAP *bmp, clip_t *clip)
{
    clip->clip = bmp->clip;
    clip->cl = bmp->cl;
    clip->cr = bmp->cr;
    clip->ct = bmp->ct;
    clip->cb = bmp->cb;
}


void restore_clip(BITMAP *bmp, clip_t *clip)
{
    bmp->clip = clip->clip;
    bmp->cl = clip->cl;
    bmp->cr = clip->cr;
    bmp->ct = clip->ct;
    bmp->cb = clip->cb;
}
