Dirty hack: nearly copy-past driven development: if-else analysis of the cases. But good perfomance improvement for this price. Also resolution now chooses equal to device resolution, and some magic constants put out.