Merge branch 'gtk3' into gtk3-bugfix
This commit is contained in:
@@ -2110,9 +2110,14 @@ void CropWindow::updateHoveredPicker (rtengine::Coord *imgPos)
|
||||
}
|
||||
LockableColorPicker::Validity validity = checkValidity (hoveredPicker, cropPos);
|
||||
hoveredPicker->setValidity (validity);
|
||||
if (validity == LockableColorPicker::Validity::INSIDE) {
|
||||
cropHandler.colorPick(cropPos, r, g, b, rpreview, gpreview, bpreview, hoveredPicker->getSize());
|
||||
hoveredPicker->setRGB (r, g, b, rpreview, gpreview, bpreview);
|
||||
|
||||
{
|
||||
MyMutex::MyLock lock(cropHandler.cimg);
|
||||
|
||||
if (validity == LockableColorPicker::Validity::INSIDE) {
|
||||
cropHandler.colorPick(cropPos, r, g, b, rpreview, gpreview, bpreview, hoveredPicker->getSize());
|
||||
hoveredPicker->setRGB (r, g, b, rpreview, gpreview, bpreview);
|
||||
}
|
||||
}
|
||||
}
|
||||
void CropWindow::changeZoom (int zoom, bool notify, int centerx, int centery)
|
||||
@@ -2477,6 +2482,7 @@ void CropWindow::drawObservedFrame (Cairo::RefPtr<Cairo::Context> cr, int rw, in
|
||||
|
||||
void CropWindow::cropImageUpdated ()
|
||||
{
|
||||
MyMutex::MyLock lock(cropHandler.cimg);
|
||||
|
||||
for (auto colorPicker : colorPickers) {
|
||||
Coord imgPos, cropPos;
|
||||
|
@@ -519,7 +519,7 @@ public:
|
||||
// you have to check if the surface is created thanks to surfaceCreated before starting to draw on it
|
||||
bool surfaceCreated()
|
||||
{
|
||||
return surface;
|
||||
return static_cast<bool>(surface);
|
||||
}
|
||||
Cairo::RefPtr<Cairo::ImageSurface> getSurface()
|
||||
{
|
||||
|
Reference in New Issue
Block a user