mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 17:13:58 +00:00
Fixed problem with screen capture size
This commit is contained in:
@@ -351,7 +351,9 @@ void ColorWheel::paintEvent(QPaintEvent * )
|
||||
painter.setClipping(false);
|
||||
|
||||
// lum-sat selector
|
||||
bool isWhite = (p->val < 0.65 || p->sat > 0.43); //0.62 || p->sat > 0.43
|
||||
// isWhite defines when the selector is white based on values of saturation
|
||||
// and color value combined as a union
|
||||
bool isWhite = (p->val < 0.65 || p->sat > 0.43);
|
||||
painter.setPen(QPen(isWhite ? Qt::white : Qt::black, 3));
|
||||
painter.setBrush(Qt::NoBrush);
|
||||
painter.drawEllipse(selector_position, selector_radius, selector_radius);
|
||||
|
||||
@@ -78,7 +78,9 @@ CaptureWidget::CaptureWidget(QWidget *parent) :
|
||||
m_buttonHandler->hide();
|
||||
// init screenshot
|
||||
createCapture();
|
||||
resize(m_screenshot->getScreenshot().size());
|
||||
QSize size = m_screenshot->getScreenshot().size();
|
||||
// we need to increase by 1 the size to reach to the end of the screen
|
||||
resize(size.width()+1, size.height()+1);
|
||||
// init interface color
|
||||
QSettings settings;
|
||||
m_uiColor = settings.value("uiColor").value<QColor>();
|
||||
|
||||
Reference in New Issue
Block a user