13
0

if we're not going to use pixfbuf (images) for faders, then lets not create a whole bunch of them unnecessarily (for now, at least)

git-svn-id: svn://localhost/ardour2/branches/3.0@13643 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-12 01:23:06 +00:00
parent 76a26929e1
commit fb204c3dcf
2 changed files with 6 additions and 0 deletions

View File

@ -77,9 +77,11 @@ class PixFader : public Gtk::DrawingArea
STATES
};
#if 0
Cairo::RefPtr<Cairo::Context> belt_context[STATES];
Cairo::RefPtr<Cairo::ImageSurface> belt_surface[STATES];
Glib::RefPtr<Gdk::Pixbuf> pixbuf[STATES];
#endif
int span, girth;
int _orien;

View File

@ -42,8 +42,10 @@ PixFader::PixFader (
: adjustment (adj),
_orien(orientation)
{
#if 0
pixbuf[NORMAL] = belt;
pixbuf[DESENSITISED] = belt_desensitised;
#endif
pattern = 0;
shine_pattern = 0;
@ -69,6 +71,7 @@ PixFader::PixFader (
adjustment.signal_value_changed().connect (mem_fun (*this, &PixFader::adjustment_changed));
adjustment.signal_changed().connect (mem_fun (*this, &PixFader::adjustment_changed));
#if 0
for (int i = 0; i < STATES; ++i) {
Cairo::Format format;
@ -83,6 +86,7 @@ PixFader::PixFader (
Gdk::Cairo::set_source_pixbuf (belt_context[i], pixbuf[i], 0.0, 0.0);
belt_context[i]->paint();
}
#endif
left_r = 0;
left_g = 0;