rbpi: make sure we take mode flags into account when finding desktop res