author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年07月23日 17:33:05 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年07月23日 17:33:05 +0200 |
commit | 38e96641ade34c5a2709b8e0ee3a283bd6bbd630 (patch) | |
tree | 9e8eea58f7eb61a9e1c7c3f631c590d28b783e88 | |
parent | ab41382754cda0fcd492d15a45e685e4a8bb5dbd (diff) | |
download | gsl-shell-38e96641ade34c5a2709b8e0ee3a283bd6bbd630.tar.gz |
-rw-r--r-- | fox-gui/fx_plot_canvas.cpp | 2 | ||||
-rw-r--r-- | fox-gui/fx_plot_canvas.h | 2 |
diff --git a/fox-gui/fx_plot_canvas.cpp b/fox-gui/fx_plot_canvas.cpp index 5542a1ce..cbd9b605 100644 --- a/fox-gui/fx_plot_canvas.cpp +++ b/fox-gui/fx_plot_canvas.cpp @@ -91,7 +91,7 @@ void fx_plot_canvas::update_region(const agg::rect_base<int>& _r) dest.attach((agg::int8u*) img.getData(), ww, hh, -ww * pixel_size); rendering_buffer_ro src; - rendering_buffer_get_const_view(src, m_img, r, pixel_size, true); + rendering_buffer_get_const_view(src, m_img, r, gslshell::bpp / 8, true); my_color_conv(&dest, &src, color_conv_rgb24_to_rgba32()); diff --git a/fox-gui/fx_plot_canvas.h b/fox-gui/fx_plot_canvas.h index f28d8e95..778c517f 100644 --- a/fox-gui/fx_plot_canvas.h +++ b/fox-gui/fx_plot_canvas.h @@ -14,7 +14,7 @@ class fx_plot_canvas : public FXCanvas { FXDECLARE(fx_plot_canvas) - typedef image_gen<4, true> image; + typedef image_gen<3, true> image; public: typedef plot<manage_owner> plot_type; |