GRASS Programmer's Manual  6.4.2(2012)
pngdriver/Set_window.c
Go to the documentation of this file.
00001 
00002 /****************************************************************************
00003  *
00004  * MODULE:       PNG driver
00005  * AUTHOR(S):    Glynn Clements <glynn@gclements.plus.com>
00006  * COPYRIGHT:    (C) 2007 Glynn Clements
00007  *
00008  *  This program is free software; you can redistribute it and/or modify
00009  *  it under the terms of the GNU General Public License as published by
00010  *  the Free Software Foundation; either version 2 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  This program is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  *  GNU General Public License for more details.
00017  *
00018  *****************************************************************************/
00019 
00020 #include "pngdriver.h"
00021 
00022 void PNG_Set_window(int t, int b, int l, int r)
00023 {
00024     clip_top = t > screen_top ? t : screen_top;
00025     clip_bot = b < screen_bottom ? b : screen_bottom;
00026     clip_left = l > screen_left ? l : screen_left;
00027     clip_rite = r < screen_right ? r : screen_right;
00028 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines