plugins/shakecursor: Increase max cursor scale
Currently, the embedded cursors have effectively a scale factor of 10. So they look smooth even though the current maxScale is small. With the svg cursors, the shake cursor needs to provide more reasonable maxScale values.
This commit is contained in:
parent
69012002d2
commit
e7c1144e2c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ void ShakeCursorEffect::magnify(qreal magnification)
|
|||
if (!m_cursorItem) {
|
||||
effects->hideCursor();
|
||||
|
||||
const qreal maxScale = ShakeCursorConfig::magnification() + 4 * ShakeCursorConfig::overMagnification();
|
||||
const qreal maxScale = ShakeCursorConfig::magnification() + 8 * ShakeCursorConfig::overMagnification();
|
||||
const KXcursorTheme originalTheme = input()->pointer()->cursorTheme();
|
||||
if (m_cursorTheme.name() != originalTheme.name() || m_cursorTheme.size() != originalTheme.size() || m_cursorTheme.devicePixelRatio() != maxScale) {
|
||||
m_cursorTheme = KXcursorTheme(originalTheme.name(), originalTheme.size(), maxScale);
|
||||
|
|
Loading…
Reference in a new issue