summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorFelix Dick <felix.dick@web.de>2022-10-10 01:35:42 +0200
committerFelix Dick <felix.dick@web.de>2022-10-10 01:35:42 +0200
commit3bf7c5aea1d20cc6a0fc95f920111548e7863af9 (patch)
tree2fb794adebcb40f4e4881dc938d32ba2eed53b18 /src/helpers/MiscFunctions.cpp
parent092dbda88acf08945d53f77fed61688088d0f2bb (diff)
Change matrixProjection function stop use matrixFlip180 everywhere.
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index 362e0675..6acd8b63 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -178,7 +178,7 @@ bool isNumber(const std::string& str, bool allowfloat) {
std::string copy = str;
if (*copy.begin() == '-')
copy = copy.substr(1);
-
+
if (copy.empty())
return false;
@@ -331,7 +331,7 @@ void logSystemInfo() {
Debug::log(LOG, "Node name: %s", unameInfo.nodename);
Debug::log(LOG, "Release: %s", unameInfo.release);
Debug::log(LOG, "Version: %s", unameInfo.version);
-
+
Debug::log(NONE, "\n");
const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA");
@@ -357,8 +357,8 @@ void matrixProjection(float mat[9], int w, int h, wl_output_transform tr) {
// Rotation + reflection
mat[0] = x * t[0];
mat[1] = x * t[1];
- mat[3] = y * -t[3];
- mat[4] = y * -t[4];
+ mat[3] = y * t[3];
+ mat[4] = y * t[4];
// Translation
mat[2] = -copysign(1.0f, mat[0] + mat[1]);
@@ -401,4 +401,4 @@ int64_t getPPIDof(int64_t pid) {
} catch (std::exception& e) {
return 0;
}
-} \ No newline at end of file
+}