home *** CD-ROM | disk | FTP | other *** search
- /*
- #### # # # #
- # # # # # The FreeWare C library for
- # # ## ### # # # # ### RISC OS machines
- # # # # # # # # # # # ___________________________________
- # # #### ### ## # # # #
- # # # # # # # # # # Please refer to the accompanying
- #### ### #### # # ##### # ### documentation for conditions of use
- ________________________________________________________________________
-
- File: Coord.RectUnion.c
- Author: Copyright © 1994 Tim Browse
- Version: 1.00 (03 Mar 1994)
- Purpose: Find the union of two rectangles.
- */
-
-
- #include "Desk.Core.h"
- #include "Desk.Wimp.h"
- #include "Desk.Coord.h"
-
-
- extern void Desk_Coord_RectUnion(Desk_wimp_rect *dest, Desk_wimp_rect *src1, Desk_wimp_rect *src2)
- {
- dest->min.x = Desk_MIN(src1->min.x, src2->min.x);
- dest->min.y = Desk_MIN(src1->min.y, src2->min.y);
- dest->max.x = Desk_MAX(src1->max.x, src2->max.x);
- dest->max.y = Desk_MAX(src1->max.y, src2->max.y);
- }
-