aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-07-30 16:03:00 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-07-30 16:03:00 +0000
commit2c36d5fe0d927dc08a512e401715f32e2292f573 (patch)
treede10c60892dc79dd6fa8ff504b2dd683840b416b
parent[w3m-dev 03282] Re: w3m-img for framebuffer update (diff)
downloadw3m-2c36d5fe0d927dc08a512e401715f32e2292f573.tar.gz
w3m-2c36d5fe0d927dc08a512e401715f32e2292f573.zip
Debian Bug#154766: w3m-img: support DirectColor framebuffer visuals?
from Colin Watson <cjwatson@debian.org> * w3mimg/fb/fb.c (fb_open): accept FB_VISUAL_DIRECTCOLOR From: Fumitoshi UKAI <ukai@debian.or.jp>
-rw-r--r--ChangeLog8
-rw-r--r--w3mimg/fb/fb.c5
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 06f180e..473ed62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-31 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * Debian Bug#154766: w3m-img: support DirectColor framebuffer visuals?
+ from Colin Watson <cjwatson@debian.org>
+ * w3mimg/fb/fb.c (fb_open): accept FB_VISUAL_DIRECTCOLOR
+
2002-07-30 Hiroyuki Ito <hito@crl.go.jp>
* [w3m-dev 03282] Re: w3m-img for framebuffer update
@@ -3677,4 +3683,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.414 2002/07/29 15:25:37 ukai Exp $
+$Id: ChangeLog,v 1.415 2002/07/30 16:03:00 ukai Exp $
diff --git a/w3mimg/fb/fb.c b/w3mimg/fb/fb.c
index dca5832..fcd33d6 100644
--- a/w3mimg/fb/fb.c
+++ b/w3mimg/fb/fb.c
@@ -1,4 +1,4 @@
-/* $Id: fb.c,v 1.5 2002/07/29 15:25:37 ukai Exp $ */
+/* $Id: fb.c,v 1.6 2002/07/30 16:03:01 ukai Exp $ */
/**************************************************************************
fb.c 0.3 Copyright (C) 2002, hito
**************************************************************************/
@@ -78,7 +78,8 @@ fb_open(void)
goto ERR_END;
}
- if (!(fscinfo.visual == FB_VISUAL_TRUECOLOR &&
+ if (!((fscinfo.visual == FB_VISUAL_TRUECOLOR ||
+ fscinfo.visual == FB_VISUAL_DIRECTCOLOR) &&
(vscinfo.bits_per_pixel == 15 ||
vscinfo.bits_per_pixel == 16 ||
vscinfo.bits_per_pixel == 24 || vscinfo.bits_per_pixel == 32))) {