mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:57:24 +00:00
UI: Graph options: Fix opacity bounds.
This commit is contained in:
parent
8decf24a7b
commit
a05c78396e
@ -281,7 +281,7 @@ void GraphWindow::updateWindowTitleSpeed()
|
||||
|
||||
void GraphWindow::setWindowOpacityPercent(int percent)
|
||||
{
|
||||
setWindowOpacity(qreal(qBound(0, percent, 99)) / 100.0);
|
||||
setWindowOpacity(qreal(qBound(1, percent, 100)) / 100.0);
|
||||
}
|
||||
|
||||
QPen GraphWindow::adjustPen(const QPen &pen, const QColor &color)
|
||||
|
Loading…
Reference in New Issue
Block a user