diff options
author | uruk | 2014-06-22 23:11:27 +0200 |
---|---|---|
committer | uruk | 2014-06-22 23:11:27 +0200 |
commit | 19bc15193941d9afd5a896c8bdead2e896f780bd (patch) | |
tree | d17a3134baee03b9a3448fd43aa85a5c37729301 | |
parent | c8ed838c054d743ec692d21e643717097f1681e5 (diff) | |
download | scummvm-rg350-19bc15193941d9afd5a896c8bdead2e896f780bd.tar.gz scummvm-rg350-19bc15193941d9afd5a896c8bdead2e896f780bd.tar.bz2 scummvm-rg350-19bc15193941d9afd5a896c8bdead2e896f780bd.zip |
CGE2: Some more formatting fix in FXP.
-rw-r--r-- | engines/cge2/vga13h.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h index 13401751e9..6876bcd825 100644 --- a/engines/cge2/vga13h.h +++ b/engines/cge2/vga13h.h @@ -52,8 +52,7 @@ namespace CGE2 { #define kPalSize (kPalCount * 3) // From FXP.H -class FXP // fixed point -{ +class FXP { // fixed point uint16 f; int16 i; long& Joined (void) const { return *(long *)&f; } @@ -67,7 +66,7 @@ public: FXP y; long t; y.i = i * x.i; t = ((long) f * x.f) >> 16; - t += ((long) i * x.f) + ((long) f * x.i); + t += ((long) i * x.f) + ((long) f * x.i); y.f = t & 0xFFFF; y.i += t >> 16; return y; |