/* $XConsortium: rnd_resrc.c,v 1.0 93/11/22 12:39:47 rws Exp $ */ /******************************************************************************/ /* */ /* (c) Copyright Hewlett-Packard Company, 1993, Fort Collins, Colorado */ /* */ /* All Rights Reserved */ /* */ /* Permission to use, copy, modify, and distribute this software and its */ /* documentation for any purpose and without fee is hereby granted, */ /* provided that the above copyright notices appear in all copies and that */ /* both the copyright notices and this permission notice appear in */ /* supporting documentation, and that the name of Hewlett-Packard not be */ /* used in advertising or publicity pertaining to distribution of the */ /* software without specific, written prior permission. */ /* */ /* HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS */ /* SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard */ /* shall not be liable for errors contained herein or direct, indirect, */ /* special, incidental or consequential damages in connection with the */ /* furnishing, performance or use of this software. */ /* */ /******************************************************************************/ /* ****************************************************************************** ** Renderer resource attribute set/inquire test ****************************************************************************** */ #include #include #include #include #include #include #include #ifdef XSYSTEM #include #endif #include #include #include #include #include "rnd_utils.h" #ifdef XSYSTEM XSystemTestingControlStructure xtc; #endif #ifdef XSYSTEm #define WIDTH 300 #define HEIGHT 500 #else #define WIDTH 200 #define HEIGHT 200 #endif #define BAD_RESOURCE_ID 0x010101 #define NUM_RENDERERS 3 static PEXRenderer renderers[NUM_RENDERERS]; static PEXRendererAttributes idle_renderer_attrs, active_renderer_attrs, check_attrs; static int create_and_bind_renderers ( Display *display, Window window, int loop) { int i; for (i=0; i 1) { for (i=0; i