diff options
Diffstat (limited to 'mbone/vic/patches/patch-aq')
-rw-r--r-- | mbone/vic/patches/patch-aq | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/mbone/vic/patches/patch-aq b/mbone/vic/patches/patch-aq index d06ac0f6033..e9d9b4a1899 100644 --- a/mbone/vic/patches/patch-aq +++ b/mbone/vic/patches/patch-aq @@ -1,13 +1,26 @@ -$NetBSD: patch-aq,v 1.1 2002/08/16 16:56:00 agc Exp $ +$NetBSD: patch-aq,v 1.2 2006/02/27 15:49:56 joerg Exp $ ---- color-dither.cc 2002/08/16 16:36:06 1.1 -+++ color-dither.cc 2002/08/16 16:37:56 -@@ -177,7 +177,7 @@ +--- color-dither.cc.orig 1995-11-14 05:46:09.000000000 +0000 ++++ color-dither.cc +@@ -169,15 +169,19 @@ class DitherWindowRenderer : public Pseu + public: + DitherWindowRenderer(VideoWindow* vw, int decimation, + DitherColorModel& cm) : ++ method_(NULL), + PseudoWindowRenderer(vw, decimation, cm.graylut()), + cm_(cm) { } + 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: DitherColorModel& cm_; virtual void update(); - virtual void disable() { method_ = PseudoWindowRenderer::dither_null; } -+ virtual void disable() { method_ = &PseudoWindowRenderer::dither_null; } ++ virtual void disable() { method_ = NULL; } DitherMethod method_; void dither_422(const u_char* frm, u_int off, u_int x, u_int width, u_int height) const; |