summaryrefslogtreecommitdiff
path: root/mbone/vic/patches/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'mbone/vic/patches/patch-as')
-rw-r--r--mbone/vic/patches/patch-as22
1 files changed, 17 insertions, 5 deletions
diff --git a/mbone/vic/patches/patch-as b/mbone/vic/patches/patch-as
index 065e3d9c742..4b0cd4d9f81 100644
--- a/mbone/vic/patches/patch-as
+++ b/mbone/vic/patches/patch-as
@@ -1,13 +1,25 @@
-$NetBSD: patch-as,v 1.1 2002/08/16 16:56:01 agc Exp $
+$NetBSD: patch-as,v 1.2 2006/02/27 15:49:56 joerg Exp $
---- color-quant.cc 2002/08/16 16:40:25 1.1
-+++ color-quant.cc 2002/08/16 16:40:50
-@@ -92,7 +92,7 @@
+--- color-quant.cc.orig 1996-02-16 03:21:16.000000000 +0000
++++ color-quant.cc
+@@ -85,14 +85,17 @@ class QuantWindowRenderer : public Pseud
+ public:
+ QuantWindowRenderer(VideoWindow* vw, int decimation, QuantColorModel& cm) :
+ PseudoWindowRenderer(vw, decimation, cm.graylut()),
+- cm_(cm) { }
++ cm_(cm), method_(NULL) { }
+ void render(const u_char* frm, int off, int x, int w, int h) {
+- (this->*method_)(frm, off, x, w, h);
++ if (this->method_)
++ (this->*method_)(frm, off, x, w, h);
++ else
++ dither_null(frm, off, x, w, h);
+ }
protected:
QuantColorModel& cm_;
virtual void update();
- virtual void disable() { method_ = PseudoWindowRenderer::dither_null; }
-+ virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; }
++ virtual void disable() { method_ = NULL; }
QuantMethod method_;
void map_422(const u_char* frm, u_int off, u_int x,
u_int width, u_int height) const;