aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/fltkimgbuf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/fltkimgbuf.cc b/dw/fltkimgbuf.cc
index 8724a935..ad010b8f 100644
--- a/dw/fltkimgbuf.cc
+++ b/dw/fltkimgbuf.cc
@@ -322,7 +322,7 @@ void FltkImgbuf::draw (Fl_Widget *target, int xRoot, int yRoot,
}
fl_draw_image(rawdata+bpp*(y*this->width + x), xRoot + x, yRoot + y, width,
- height, bpp);
+ height, bpp, this->width * bpp);
}