From 36ee0aee8dd44bf752496a51425cf5b567d1d205 Mon Sep 17 00:00:00 2001 From: castano Date: Mon, 8 Oct 2007 10:05:43 +0000 Subject: [PATCH] Fix error, do not report that RGB images are not supported. --- src/nvimage/DirectDrawSurface.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/nvimage/DirectDrawSurface.cpp b/src/nvimage/DirectDrawSurface.cpp index f885bbe..fc6946b 100644 --- a/src/nvimage/DirectDrawSurface.cpp +++ b/src/nvimage/DirectDrawSurface.cpp @@ -656,19 +656,7 @@ bool DirectDrawSurface::isSupported() const } else if (header.pf.flags & DDPF_RGB) { - if (header.pf.bitcount == 24) - { - return false; - } - else if (header.pf.bitcount == 32) - { - return false; - } - else - { - // Unsupported pixel format. - return false; - } + // All RGB formats are supported now. } else {