$NetBSD: patch-at,v 1.2 2006/02/27 15:49:56 joerg Exp $ --- color-hi.cc.orig 1996-05-16 12:42:44.000000000 +0000 +++ color-hi.cc @@ -157,14 +157,17 @@ typedef void (HiWindowRenderer::*HiMetho class HiWindowRenderer : public WindowDitherer { public: HiWindowRenderer(VideoWindow* vw, int decimation, HiColorModel& cm) - : WindowDitherer(vw, decimation), cm_(cm), method_(0){ } + : WindowDitherer(vw, decimation), 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: HiColorModel& cm_; virtual void update(); - virtual void disable() { method_ = HiMethod(WindowRenderer::dither_null); } + virtual void disable() { method_ = NULL; } HiMethod method_; void map_422(const u_char* frm, u_int off, u_int x, u_int width, u_int height) const;