From nobu@psrc.isac.co.jp Fri Apr 23 08:38:26 1993 From: nobu@psrc.isac.co.jp (Nobuhiro Yasutomi) Newsgroups: fj.sources.d Subject: Re: xmisav version 1.11 Date: 22 Apr 93 10:00:07 GMT Distribution: fj Organization: ISAC,Inc. (International Sekisui AI Corporation) JAPAN In-reply-to: kaneda@atr-rd.atr.co.jp's message of 21 Apr 93 02:17:04 GMT 早速ですがちょっと hack してみました。 xmisav version 1.11 で、ウインドウサイズと絵のサイズがずれるのを直す パッチです。(これは未沙ちゃんフォーマットの欠点なんだよなぁ) *** xmisav.c.orig Tue Apr 20 20:58:55 1993 --- xmisav.c Thu Apr 22 16:01:02 1993 *************** *** 298,303 **** --- 298,304 ---- XClassHint ch; XSizeHints size; char buf[BUFFERSIZE], *p; + int wide = AnimeCellData[0]+AnimeCellData[1]*256; /* real width */ if(NULL == (Dpy = XOpenDisplay(disname))) { if (NULL == disname || '\0' == disname[0]) { *************** *** 310,316 **** Scr = DefaultScreen(Dpy); /* Window size & location */ ! sprintf(buf, "%dx%d+0+0", Width, Height); size.flags = PPosition | USSize | PMinSize | PMaxSize; if (0 != (XGeometry(Dpy, 0, geom_string, buf, 1, 1, 1, 0, 0, &size.x, &size.y, &size.width, &size.height) & --- 311,317 ---- Scr = DefaultScreen(Dpy); /* Window size & location */ ! sprintf(buf, "%dx%d+0+0", wide, Height); size.flags = PPosition | USSize | PMinSize | PMaxSize; if (0 != (XGeometry(Dpy, 0, geom_string, buf, 1, 1, 1, 0, 0, &size.x, &size.y, &size.width, &size.height) & *************** *** 318,324 **** size.flags |= USPosition; } size.min_width = 0; ! size.max_width = Width; size.min_height = 0; size.max_height = Height; --- 319,325 ---- size.flags |= USPosition; } size.min_width = 0; ! size.max_width = wide; size.min_height = 0; size.max_height = Height; %% だれか拡大もできるようにしてくれない? --- 安富 伸浩@アイザック junet: nobu@psrc.isac.co.jp NIFTY: MGG02210