summaryrefslogtreecommitdiff
path: root/mbone/vic/patches/patch-au
diff options
context:
space:
mode:
Diffstat (limited to 'mbone/vic/patches/patch-au')
-rw-r--r--mbone/vic/patches/patch-au22
1 files changed, 17 insertions, 5 deletions
diff --git a/mbone/vic/patches/patch-au b/mbone/vic/patches/patch-au
index 58afbf3183c..5fd0610c69a 100644
--- a/mbone/vic/patches/patch-au
+++ b/mbone/vic/patches/patch-au
@@ -1,13 +1,25 @@
-$NetBSD: patch-au,v 1.1 2002/08/16 16:56:01 agc Exp $
+$NetBSD: patch-au,v 1.2 2006/02/27 15:49:56 joerg Exp $
---- color-gray.cc 2002/08/16 16:44:59 1.1
-+++ color-gray.cc 2002/08/16 16:45:10
-@@ -82,7 +82,7 @@
+--- color-gray.cc.orig 1995-11-14 05:46:10.000000000 +0000
++++ color-gray.cc
+@@ -75,14 +75,17 @@ typedef void (GrayWindowRenderer::*GrayM
+ class GrayWindowRenderer : public PseudoWindowRenderer {
+ public:
+ GrayWindowRenderer(VideoWindow* vw, int decimation,
+- const u_short* graylut) :
++ const u_short* graylut) : method_(NULL),
+ PseudoWindowRenderer(vw, decimation, graylut) { }
+ 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:
virtual void update();
- virtual void disable() { method_ = PseudoWindowRenderer::dither_null; }
-+ virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; }
++ virtual void disable() { method_ = NULL; }
GrayMethod method_;
};