Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!gatech!udel!burdvax!psuvax1!vu-vlsi!swatsun!richwill
From: richwill@swatsun.uucp (Rich Williamson)
Newsgroups: comp.windows.x
Subject: XDrawFilled & XDrawTiled
Message-ID: <1800@tulum.UUCP>
Date: 12 May 88 20:48:19 GMT
Reply-To: richwill@swatsun.uucp ()
Organization: Sun Lab, Swarthmore College PA
Lines: 51

#define WHITE    1
#define BLACK    0

Vertex VList1[] = {
  10, 10, VertexDrawLastPoint,
  10, 100, VertexDrawLastPoint,
  100, 100, VertexDrawLastPoint,
  100, 10, VertexDrawLastPoint,
  10, 10, VertexDrawLastPoint };

int VCount = 5;

short GreyData[] = { 0x5555, 0xaaaa };

   .
   .
   .

  InitializeWindow( WINDOW_LEFT_EDGE, WINDOW_TOP_EDGE,
                    WINDOW_WIDTH, WINDOW_HEIGHT );

  GreyPixmap = XStorePixmapXY( 16, 2, GreyData );
  if( !GreyPixmap ) {
    printf("Couldn't create pixmap.\n");
  }
  else {
     /*  This doesn't work.  */
     XDrawTiled( MyWindow, VList1, VCount, GreyPixmap, GXcopy, AllPlanes );
[or] XDrawFilled( MyWindow, VList1, VCount, BLACK, GXcopy, AllPlanes );
  }
  XSync( MyWindow );

  /*  This works.  */  
  XDraw( MyWindow, VList1, VCount, 1, 1, BLACK, GXcopy, AllPlanes );
  XPixmapPut( MyWindow,0,0,300,300,16,2,GreyPixmap,GXcopy,AllPlanes );

   .
   .
   .

Does anyone have any idea why neither of XDrawFilled or XDrawTiled work?
The XDraw and XPixmapPut work just fine, so I would think that my Vertex
list and Pixmap are ok.  Yet neither XDrawTiled nor XDrawFilled have any
effect whatsoever.  I'm using X.V10R4 on a Sun 3/50 with a monochrome
monitor.
 
UUCP: seismo!bpa!swatsun!richwill
CSNET: richwill%swatsun.swarthmore.edu@relay.cs.net
-- 
UUCP: seismo!bpa!swatsun!richwill
CSNET: richwill%swatsun.swarthmore.edu@relay.cs.net