spawn_window.c
static void drawSquare(Display *disp, Window wind, GC gContext, Square *square)
{
	XClearWindow(disp, wind);
	if (square->visible) {
		XFillRectangle(disp, wind, gContext, square->x, square->y,
				square->size, square->size);
	}
	XFlush(disp);
}
// This draws the square inside the window, after clearing its contents
This draws the square inside the window, after clearing its contents
This draws the square inside the window after clearing its contents
static void drawSquare(Display *disp, Window wind, GC gContext, Square *square)
{
	XClearWindow(disp, wind);
	if (square->visible) {
		XFillRectangle(disp, wind, gContext, square->x, square->y,
				square->size, square->size);
	}
	XFlush(disp);
}
static void drawSquare ( Display * disp , Window wind , GC gContext , Square * square ) { XClearWindow ( disp , wind ) ; if ( square -> visible ) { XFillRectangle ( disp , wind , gContext , square -> x , square -> y , square -> size , square -> size ) ; } XFlush ( disp ) ; }
This draws the square inside the window, after clearing its contents
This draws the square inside the window after clearing its contents