Skip to content
Snippets Groups Projects
Commit c60d9fdf authored by bodzsoaa's avatar bodzsoaa
Browse files

SM-14 Fix warning

parent dee74bef
No related branches found
No related tags found
No related merge requests found
...@@ -64,9 +64,12 @@ void MuebReceiver::ReadPendingDatagrams() { ...@@ -64,9 +64,12 @@ void MuebReceiver::ReadPendingDatagrams() {
// Uncompress 1 byte into 2 color components // Uncompress 1 byte into 2 color components
if (d->configuration_.color_depth() < 5) { if (d->configuration_.color_depth() < 5) {
for (auto &i : data) { for (auto &i : data) {
*frame_begin = (i & 0xf0) << Configuration::kFactor - d->configuration_.color_depth(); *frame_begin = (i & 0xf0) << (Configuration::kFactor -
d->configuration_.color_depth());
frame_begin++; frame_begin++;
*frame_begin = (i & 0x0f) << (Configuration::kFactor + Configuration::kFactor - d->configuration_.color_depth()); *frame_begin = (i & 0x0f)
<< (Configuration::kFactor + Configuration::kFactor -
d->configuration_.color_depth());
frame_begin++; frame_begin++;
} }
// No compression // No compression
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment