After libkscreen!12 rotation direction changed, so we need to fix this as well. (cherry picked from commit 7d2dff0d)