From 53c4aa545e3c0d4cb836dda3f8efdbf39f5658ab Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 6 Jun 2011 08:31:49 +0000 Subject: Changed switch handling and added width/height switches. --- xd.c | 53 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/xd.c b/xd.c index ff4b3c9..167e43b 100644 --- a/xd.c +++ b/xd.c @@ -260,8 +260,8 @@ static Pixmap saved=None; static GC gc=None; static Display *disp=NULL; static XFontStruct *font=NULL; -static int width; -static int height; +static int width = 640; +static int height = 480; static int centre_x; static int centre_y; @@ -346,23 +346,45 @@ int main(int argc, char *argv[]) XEvent ev; int f; - for(f=1;f