Fix broken RGB indicator bar
This commit is contained in:
parent
3e7f19c81b
commit
79707ed1ea
@ -353,18 +353,17 @@ void HistogramPanel::toggleFreeze ()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistogramPanel::pointerMoved (bool validPos, Glib::ustring profile, Glib::ustring profileW, int x, int y, int r, int g, int b)
|
void HistogramPanel::pointerMoved (bool validPos, const Glib::ustring &profile, const Glib::ustring &profileW, int x, int y, int r, int g, int b, bool isRaw)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!validPos) {
|
if (!validPos) {
|
||||||
// do something to un-show vertical bars
|
// do something to un-show vertical bars
|
||||||
histogramRGBArea->updateBackBuffer(-1, -1, -1);
|
histogramRGBArea->updateBackBuffer(-1, -1, -1);
|
||||||
histogramRGBArea->queue_draw ();
|
|
||||||
} else {
|
} else {
|
||||||
// do something to show vertical bars
|
// do something to show vertical bars
|
||||||
histogramRGBArea->updateBackBuffer(r, g, b, profile, profileW);
|
histogramRGBArea->updateBackBuffer(r, g, b, profile, profileW);
|
||||||
histogramRGBArea->queue_draw ();
|
|
||||||
}
|
}
|
||||||
|
histogramRGBArea->queue_draw ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -197,7 +197,7 @@ public:
|
|||||||
histogramArea->update (histRed, histGreen, histBlue, histLuma, histRedRaw, histGreenRaw, histBlueRaw, histChroma);
|
histogramArea->update (histRed, histGreen, histBlue, histLuma, histRedRaw, histGreenRaw, histBlueRaw, histChroma);
|
||||||
}
|
}
|
||||||
// pointermotionlistener interface
|
// pointermotionlistener interface
|
||||||
void pointerMoved (bool validPos, Glib::ustring profile, Glib::ustring profileW, int x, int y, int r, int g, int b);
|
void pointerMoved (bool validPos, const Glib::ustring &profile, const Glib::ustring &profileW, int x, int y, int r, int g, int b, bool isRaw = false);
|
||||||
// added pointermotionlistener interface
|
// added pointermotionlistener interface
|
||||||
void toggleFreeze();
|
void toggleFreeze();
|
||||||
// TODO should be protected
|
// TODO should be protected
|
||||||
|
@ -27,7 +27,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~PointerMotionListener() {}
|
virtual ~PointerMotionListener() {}
|
||||||
virtual void pointerMoved (bool validPos, const Glib::ustring &profile, const Glib::ustring &profileW, int x, int y, int r, int g, int b, bool isRaw = false) {}
|
virtual void pointerMoved (bool validPos, const Glib::ustring &profile, const Glib::ustring &profileW, int x, int y, int r, int g, int b, bool isRaw = false) = 0;
|
||||||
virtual void toggleFreeze () {}
|
virtual void toggleFreeze () {}
|
||||||
virtual void getRGBText (int r, int g, int b, Glib::ustring &sR, Glib::ustring &sG, Glib::ustring &sB, bool isRaw = false) { sR = "--"; sG = "--"; sB = "--"; }
|
virtual void getRGBText (int r, int g, int b, Glib::ustring &sR, Glib::ustring &sG, Glib::ustring &sB, bool isRaw = false) { sR = "--"; sG = "--"; sB = "--"; }
|
||||||
virtual void getHSVText (float h, float s, float v, Glib::ustring &sH, Glib::ustring &sS, Glib::ustring &sV) { sH = "--"; sS = "--"; sV = "--"; }
|
virtual void getHSVText (float h, float s, float v, Glib::ustring &sH, Glib::ustring &sS, Glib::ustring &sV) { sH = "--"; sS = "--"; sV = "--"; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user