--- ../SIM.archive/SRC/graphics.c Fri Mar 1 07:28:51 1996 +++ SRC/graphics.c Thu Feb 21 19:26:57 2002 @@ -321,8 +321,18 @@ void DrawWorldSquare(struct World *world) { struct Object *object; - + XImage *background; + DrawPlate(33,20,504,504,GREY_69,PLATE_DOWN); + //-- Hack to get the simulator's color polling kluge to work when the actual color + // doesn't match the requested one exactly. + // This is where the background for the world pane gets drawn, so we can grab it without fear + // of some object being there. + background = XGetImage(display,window,WORLD_OFFSET_X,WORLD_OFFSET_Y,10,10,255,XYPixmap); + world->BackgroundPixel = XGetPixel(background,5,5); + if(background) + XDestroyImage(background); + object = world->Objects; while (object) {