shithub: cstory

Download patch

ref: c45326295a4bfb93440f95cc23de827a0cdd7045
parent: e864f7e1421e661a83d53462b78308257221cae1
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Mar 11 18:19:12 EDT 2019

Minor Font.cpp cleanup

--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1628,8 +1628,7 @@
 			return shiftjis_to_unicode_lookup[string[0]];
 	}
 
-	lookup_index += (string[0] & 0xF) * 0x100;
-	lookup_index += string[1];
+	lookup_index += ((string[0] << 8) | string[1]) & 0xFFF;
 
 	if (bytes_read != NULL)
 		*bytes_read = 2;