summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
index 9fd9b08f..deea6c7c 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -39,7 +39,7 @@ void TrackerImpl::run() {
unsigned char bytes[2];
};
bool convertp;
- check() : bytes { 255, 0 }, convertp(half > 255) {}
+ check() : bytes { 0, 255 }, convertp(half > 255) {}
} crapola;
if (should_quit)
@@ -80,7 +80,7 @@ void TrackerImpl::run() {
constexpr int sz = sizeof(float[6]);
const int len = sz / 2;
unsigned char* alias = reinterpret_cast<unsigned char*>(orient);
- for (int i = 0; i < sz; i++)
+ for (int i = 0; i < len; i++)
alias[i] = alias[sz-i];
}