aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/bg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/bg.cpp')
-rw-r--r--engines/cine/bg.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/engines/cine/bg.cpp b/engines/cine/bg.cpp
index b8603cd48c..bdcc893c91 100644
--- a/engines/cine/bg.cpp
+++ b/engines/cine/bg.cpp
@@ -45,8 +45,7 @@ uint8 loadCt(const char *ctName) {
currentPtr = ptr = readBundleFile(findFileInBundle(ctName));
if (gameType == Cine::GID_OS) {
- if (*(uint16 *) currentPtr == 0x800) // detect 256 color background
- {
+ if (*(uint16 *) currentPtr == 0x800) { // detect 256 color background
loadCtHigh(currentPtr + 2);
return 0;
}
@@ -95,8 +94,7 @@ uint8 loadBg(const char *bgName) {
currentPtr = ptr = readBundleFile(fileIdx);
- if (*(uint16 *) currentPtr == 0x800) // detect 256 color background
- {
+ if (*(uint16 *) currentPtr == 0x800) { // detect 256 color background
loadBgHigh((char *)currentPtr + 2);
return 0;
}
@@ -121,8 +119,7 @@ uint8 loadBg(const char *bgName) {
return 0;
}
-uint8 *additionalBgTable[9] =
- { page2Raw, NULL, NULL, NULL, NULL, NULL, NULL, NULL, page3Raw };
+uint8 *additionalBgTable[9] = { page2Raw, NULL, NULL, NULL, NULL, NULL, NULL, NULL, page3Raw };
uint8 currentAdditionalBgIdx = 0;
uint8 currentAdditionalBgIdx2 = 0;
@@ -139,10 +136,8 @@ void addBackground(char *bgName, uint16 bgIdx) {
additionalBgTable[bgIdx] = (uint8 *) malloc(320 * 200);
- if (*(uint16 *) currentPtr == 0x800) // detect 256 color background
- {
- memcpy(additionalBgTable[bgIdx], currentPtr + 2 + 3 * 256,
- 320 * 200);
+ if (*(uint16 *) currentPtr == 0x800) { // detect 256 color background
+ memcpy(additionalBgTable[bgIdx], currentPtr + 2 + 3 * 256, 320 * 200);
return;
}