open-axiom repository from github
/*1Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.2All rights reserved.3Copyright (C) 2007-2008, Gabriel Dos Reis.45Redistribution and use in source and binary forms, with or without6modification, are permitted provided that the following conditions are7met:89- Redistributions of source code must retain the above copyright10notice, this list of conditions and the following disclaimer.1112- Redistributions in binary form must reproduce the above copyright13notice, this list of conditions and the following disclaimer in14the documentation and/or other materials provided with the15distribution.1617- Neither the name of The Numerical ALgorithms Group Ltd. nor the18names of its contributors may be used to endorse or promote products19derived from this software without specific prior written permission.2021THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS22IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED23TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A24PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER25OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,26EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,27PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR28PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF29LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING30NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS31SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32*/3334/*35* Decides if mouse click was in yes or no region; used by program to test36* out Gdraw functions in this directory.37*/3839#include "Gdraws0.h"4041int42Gdraws_pressed_yes(int win_width, int win_height, int x, int y)43{44return (x < win_width / 2) ? yes : no;45}464748