/*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* HISTORY
*/
#ifdef REV_INFO
#ifndef lint
static char rcsid[] = "$XConsortium: CheckVisual.c /main/8 1995/07/14 11:46:45 drk $"
#endif
#endif
/***********************************************************************
@(#)CheckVisual.c 1.5.1.1 Date:1/22/91
Author: TAT
History:
05/24/90 SJS add to SCCS
Calls:
Summary:
Called to either compare the visual pixmap against known-good pixmap
record from file or to generate known-good pixmap.
INPUTS:
widget - the widget whose image needs comparing or capturing
OUTPUTS:
none
RETURNS:
nothing
************************************************************************/
#include <AutoMessages.h>
#include "vislib.h"
void mvsCheckVisual(widget_info)
MvsWidgetInfoRecord *widget_info;
{
char msg_string[125];
if (XmIsGadget(widget_info->widget))
widget_info = widget_info->parent;
switch (mvsVisualMode) {
case VISUAL_MODE_DONT_CHECK:
mvsImageFd = 0;
break;
case VISUAL_MODE_BATCH_COMPARE:
mvsComparePixmapBatch(widget_info);
break;
case VISUAL_MODE_INTERACTIVE_COMPARE:
mvsComparePixmapInt(widget_info);
break;
case VISUAL_MODE_GENERATE_PIXMAPS:
mvsGeneratePixmap(widget_info);
break;
default:
sprintf(msg_string, _AutoMessages[VISMSG45], mvsVisualMode);
AutoMessage(msg_string);
}
} /* End mvsCheckVisual() */