Firepaint:
Inverted the statements in the if conditions checking cache_size
to improve readability and to harmonize the code with showmouse.
Fixed minor coding style issues (added spaces).
Firepaint and Showmouse:
Added constants replacing magic numbers to improve readability.
Removed redundant newlines.
Approved by Brandon Schaefer, Sam Spilsbury.