Version: unspecified (using KDE 4.6.0) OS: Linux Rotation (clockwise and anti-clockwise) now works in reverse. I.e., in order to make the 'Up' key do an anti-clockwise rotation you must now set it to 'clockwise'. Reproducible: Always Steps to Reproduce: Install OpenSuse 11.4 with KDE 4.6 (and with KBlocks 0.3), then play KBlocks. I did it in single-player mode. Actual Results: Rotation keys work in the opposite direction from what they used to - and from what they should be doing according to their shortcut settings. Expected Results: The rotation keys ought not to be reversed. This bug supersedes bug 268528, part 2 - as it would appear that combined bug reports are unhandy in the bug tracking process.
I can confirm the issue. After a short look at the code, I came up with this patch (really, a short look, and I am not able to compile currently, so could anyone test this please?) Index: KBlocksKeyboardPlayer.cpp =================================================================== --- KBlocksKeyboardPlayer.cpp (revision 1225051) +++ KBlocksKeyboardPlayer.cpp (working copy) @@ -196,7 +196,7 @@ } else { - mpGame->setCurrentPiece(0, 0, 1); + mpGame->setCurrentPiece(0, 0, -1); } } @@ -212,6 +212,6 @@ } else { - mpGame->setCurrentPiece(0, 0, -1); + mpGame->setCurrentPiece(0, 0, 1); } }
It'll do. Anyone could test it.
Ok, tested on another box and it works. :)
SVN commit 1225074 by schwarzer: Fix swapped rotation direction. BUG: 268581 M +2 -2 KBlocksKeyboardPlayer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1225074
SVN commit 1225076 by schwarzer: Fix swapped rotation direction. BUG: 268581 M +2 -2 KBlocksKeyboardPlayer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1225076