[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sigmarion frame buffer



はたのです。

<200102150154.KAA27218@mail.ba2.so-net.ne.jp>の記事において
sato@ba2.so-net.ne.jpさんは書きました。

> mq200.cがHPCFBIO_GCONF+HPCFB_CURRENT_CONFIGで返す値の問題だと思います。
> 
> 	struct hpcfb_fbconf fbconf;
> 
> 	fbconf.hf_conf_index = HPCFB_CURRENT_CONFIG;
> 	if (ioctl(fd, HPCFBIO_GCONF, &fbconf) < 0) {
> 		perror("ioctl(HPCFBIO_GCONF)");
> 		return FALSE;
> 	}
> 	fprintf(stderr, "%dx%d (%dbytes/line) %dbit offset=%lx\n",
> 	    fbconf.hf_width,
> 	    fbconf.hf_height,
> 	    fbconf.hf_bytes_per_line,
> 	    fbconf.hf_pixel_width,
> 	    fbconf.hf_offset);
> 
> の結果はどうなるでしょうか。
> 
> 私の場合
> 640x240 (1280bytes/line) 16bit offset=0x00000000
> mgl2とかはいっていればdebug printfでも出力されますが...

  mgl2で試したところ。
  640x240 (1280bytes/line) 16bit offset=0
  です。
  同じ結果ですね。

> mgl2などではどうなりますか? 私の方ではこちらも問題ないです。

  こちらもずれます。

  ...何でだろう。うちだけ?
--
HATANO Hiromichi			E-mail address: hatano@sarasarado.org