Skip to content

Commit 135aba3

Browse files
committed
Code formatting
1 parent 02f2be8 commit 135aba3

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

src/drivers/dingux-sdl/scaler.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,16 @@ void upscale_320x448(uint32 *dst, uint8 *src)
5858
gh = palettetranslate[*(uint16 *)(src + source + 6)] & 0xF7DEF7DE;
5959

6060
*dst++ = ab;
61-
*dst++ = ((ab >> 17) + ((cd & 0xFFFF) >> 1)) + (cd << 16);
62-
*dst++ = (cd >> 16) + (ef << 16);
63-
*dst++ = (ef >> 16) + (((ef & 0xFFFF0000) >> 1) + ((gh & 0xFFFF) << 15));
64-
*dst++ = gh;
61+
*dst++ = ((ab >> 17) + ((cd & 0xFFFF) >> 1)) + (cd << 16);
62+
*dst++ = (cd >> 16) + (ef << 16);
63+
*dst++ = (ef >> 16) + (((ef & 0xFFFF0000) >> 1) + ((gh & 0xFFFF) << 15));
64+
*dst++ = gh;
6565

6666
source += 8;
6767

6868
}
6969
Eh += 224;
70-
if(Eh >= 448)
71-
{
72-
Eh -= 448;
73-
dh++;
74-
}
70+
if(Eh >= 448) {Eh -= 448; dh++; }
7571
}
7672
}
7773

0 commit comments

Comments
 (0)