Actually, rel 1.05 has a variable named displaySize that can be either LARGE or SMALL, as set in setup(). I think a simple if-else using displaySize will take care of it.
Works fine, thanks. ?looking at Matts message?0x9488, is one of the id's in your original code, given that there's so many different display id's out there if may be better to use a case: switch like in your setup, it would be much easier to add additional displays with the code that way.