#include "x11.hh"
+#include "parameter.hh"
+
+static Parameter<int> x11size("x11size", "X11 window size", 500, 100, 10, 10000);
X11Output::X11Output() {
XGCValues gcvalues;
display= XOpenDisplay(0);
window= XCreateSimpleWindow(display,
DefaultRootWindow(display),
- 0,0, 500,500, 0,0,0);
+ 0,0, x11size,x11size, 0,0,0);
gcvalues.background= 0;
fabric= XCreateGC(display,window,GCBackground,&gcvalues);
gcvalues.foreground= 1;
XPoint xp[n+1];
for (int i=0; i<n; i++) {
Onscreen here= Onscreen(list[i]);
- xp[i].x= (int)((here.x+1.0)*250.0);
- xp[i].y= (int)((-here.y+1.0)*250.0);
+ xp[i].x= (int)((here.x+1.0)*(x11size*0.5));
+ xp[i].y= (int)((-here.y+1.0)*(x11size*0.5));
}
XFillPolygon(display,window,fabric,xp,n,Nonconvex,CoordModeOrigin);
xp[n]= xp[0];