diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-03-18 16:29:19 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-23 09:12:57 (GMT) |
commit | 74934cba48910e366d96e4e596e8676d8434fe24 (patch) | |
tree | 4a117c85b5766ce21e728498d68e5218cb8b8bc3 /tools/qvfb/qvfb.cpp | |
parent | be3916b7e4e8007394cbed40484ef6b696e90f2b (diff) | |
download | Qt-74934cba48910e366d96e4e596e8676d8434fe24.zip Qt-74934cba48910e366d96e4e596e8676d8434fe24.tar.gz Qt-74934cba48910e366d96e4e596e8676d8434fe24.tar.bz2 |
Adding 2bpp support to qvfb
Diffstat (limited to 'tools/qvfb/qvfb.cpp')
-rw-r--r-- | tools/qvfb/qvfb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qvfb/qvfb.cpp b/tools/qvfb/qvfb.cpp index 62149a1..0fb3577 100644 --- a/tools/qvfb/qvfb.cpp +++ b/tools/qvfb/qvfb.cpp @@ -678,6 +678,8 @@ void QVFb::configure() int d; if ( config->depth_1->isChecked() ) d=1; + else if ( config->depth_2gray->isChecked() ) + d=2; else if ( config->depth_4gray->isChecked() ) d=4; else if ( config->depth_8->isChecked() ) @@ -741,6 +743,7 @@ void QVFb::chooseSize(const QSize& sz) void QVFb::chooseDepth(int depth, QVFbView::PixelFormat displayFormat) { config->depth_1->setChecked(depth==1); + config->depth_2gray->setChecked(depth==2); config->depth_4gray->setChecked(depth==4); config->depth_8->setChecked(depth==8); config->depth_12->setChecked(depth==12); |