/* Copyright 1996 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 * Title: c.dragasprit.c
 * Purpose: Dragging a sprite
 * Author: JSR
 * History:
 *   0.00 06-Nov-90 JSR created
 *        13-May-91 ECN turned of stack checking
 */

#include "os.h"

#include "dragasprit.h"

# ifndef DragASprite_Start
# define DragASprite_Start 0x42400
# define DragASprite_Stop  0x42401
# endif

#pragma -s1

extern os_error * dragasprite_start
(
        dragasprite_options     options,
        sprite_area             *area,
        char                    *name,
        wimp_box                *dragbox,
        wimp_box                *boundbox
)
{
        os_regset r;

        r.r[0] = (int)options;
        r.r[1] = (int)area;
        r.r[2] = (int)name;
        r.r[3] = (int)dragbox;
        r.r[4] = (int)boundbox;

        return os_swix( DragASprite_Start, &r );
}

extern os_error * dragasprite_stop
(
        void
)
{
        os_regset r;

        return os_swix( DragASprite_Stop, &r );
}

#pragma -s0