/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    Coord.Convert1.c
    Author:  Copyright  1992 Jason Williams
    Version: 1.00 (22 Mar 1992)
    Purpose: Window <--> Screen coordinate conversion routines
*/


#include "Desk.Core.h"
#include "Desk.Coord.h"
#include "Desk.Wimp.h"

/*  Note: The window workarea origin (0, 0) is at the TOP LEFT corner of the
 *        work area.
 */


/* --------------------------------------------------------------------------
 * The following routines have been defined in Coord.h as macros...
 *
 * extern int Desk_Coord_XToScreen(int x, Desk_convert_block *convert)
 * extern int Desk_Coord_YToScreen(int x, Desk_convert_block *convert)
 *
 */

extern void Desk_Coord_PointToScreen(Desk_wimp_point *point, const Desk_convert_block *convert)
{
  point->x = Desk_Coord_XToScreen(point->x, convert);
  point->y = Desk_Coord_YToScreen(point->y, convert);
}
