summaryrefslogtreecommitdiff
path: root/lyt/materials/tevswaptable.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
committerTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
commit3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch)
treed10e8cd4e462db28dd3c2f995905c4df57a20fed /lyt/materials/tevswaptable.cpp
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz
LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip
initial un-exporter version
Diffstat (limited to 'lyt/materials/tevswaptable.cpp')
-rw-r--r--lyt/materials/tevswaptable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lyt/materials/tevswaptable.cpp b/lyt/materials/tevswaptable.cpp
index a13a491..9121b78 100644
--- a/lyt/materials/tevswaptable.cpp
+++ b/lyt/materials/tevswaptable.cpp
@@ -50,10 +50,10 @@ void LYTTevSwapTable::readFromDataStream(QDataStream &in) {
quint8 val;
in >> (quint8&)val;
- mode[i].red = BitExtract(val, 2, 32 - 8);
- mode[i].green = BitExtract(val, 2, 32 - 6);
- mode[i].blue = BitExtract(val, 2, 32 - 4);
- mode[i].alpha = BitExtract(val, 2, 32 - 2);
+ mode[i].red = BitExtract(val, 2, 32 - 2);
+ mode[i].green = BitExtract(val, 2, 32 - 4);
+ mode[i].blue = BitExtract(val, 2, 32 - 6);
+ mode[i].alpha = BitExtract(val, 2, 32 - 8);
}
}