Using FromDIP() in wxXRC broke creating controls whose width or height was specified as -1 as it became -2 when sufficiently high DPI was used, and so lost the special meaning of "unspecified" that -1 had. Avoid this problem by never scaling -1 in FromDIP(), this is unlikely to ever be useful and could result in more difficult to debug problems in the future.