kick pointless nominalCursor calculation

likely just copypasta from a broken kcm and gets
us a wrong dimensioned cursor texture

BUG: 310497
FIXED-IN: 4.10
This commit is contained in:
Thomas Lübking 2012-11-24 17:50:52 +01:00
parent 3964785830
commit eebabeb636

View file

@ -47,17 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace KWin
{
static int nominalCursorSize(int iconSize)
{
for (int i = 512; i > 8; i /= 2) {
if (i < iconSize)
return i;
if ((i * .75) < iconSize)
return int(i * .75);
}
return 8;
}
KWIN_EFFECT(zoom, ZoomEffect)
ZoomEffect::ZoomEffect()
@ -179,7 +168,6 @@ void ZoomEffect::recreateTexture()
int iconSize = size.toInt(&ok);
if (!ok)
iconSize = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize);
iconSize = nominalCursorSize(iconSize);
// load the cursor-theme image from the Xcursor-library
XcursorImage *ximg = XcursorLibraryLoadImage("left_ptr", theme.toLocal8Bit(), iconSize);