gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年07月23日 17:33:05 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年07月23日 17:33:05 +0200
commit38e96641ade34c5a2709b8e0ee3a283bd6bbd630 (patch)
tree9e8eea58f7eb61a9e1c7c3f631c590d28b783e88
parentab41382754cda0fcd492d15a45e685e4a8bb5dbd (diff)
downloadgsl-shell-38e96641ade34c5a2709b8e0ee3a283bd6bbd630.tar.gz
Fix pixel size for source image in fx_plot_canvas
Diffstat
-rw-r--r--fox-gui/fx_plot_canvas.cpp 2
-rw-r--r--fox-gui/fx_plot_canvas.h 2
2 files changed, 2 insertions, 2 deletions
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;
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月05日 16:06:46 +0000

AltStyle によって変換されたページ (->オリジナル) /