Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 853088 Details for
Bug 895438
kde-apps/krdc-22.08.2: regression in scalling preventing full 1:1 scale
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove regression
revoke_scaliing_regression.patch (text/plain), 969 bytes, created by
Rafal Lalik
on 2023-02-19 16:49:36 UTC
(
hide
)
Description:
Patch to remove regression
Filename:
MIME Type:
Creator:
Rafal Lalik
Created:
2023-02-19 16:49:36 UTC
Size:
969 bytes
patch
obsolete
>--- b/factorwidget.cpp >+++ a/factorwidget.cpp >@@ -43,7 +43,7 @@ > } > > QSlider * s = new QSlider(Qt::Horizontal, _parent); >+ s->setRange(0, 100); >- s->setRange(100, 200); > s->setMaximumWidth(100); > > connect(s, &QSlider::valueChanged, m_receiver, &MainWindow::setFactor); >--- b/vnc/vncview.cpp >+++ a/vnc/vncview.cpp >@@ -121,9 +121,11 @@ > qCDebug(KRDC) << w << h; > if (m_scale) { > const QSize frameSize = m_frame.size() / m_frame.devicePixelRatio(); >+ const qreal _newW = (frameSize.width() - w) * m_factor + w; >+ const qreal _newH = (frameSize.height() - h) * m_factor + h; > >+ m_verticalFactor = _newH / frameSize.height(); >+ m_horizontalFactor = _newW / frameSize.width(); >- m_verticalFactor = static_cast<qreal>(h) / frameSize.height() * m_factor; >- m_horizontalFactor = static_cast<qreal>(w) / frameSize.width() * m_factor; > > #ifndef QTONLY > if (Settings::keepAspectRatio()) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 895438
: 853088