[r5030] Core: - Fix some graphical glitches on big-endian systems. -Do some minor code cleanup