Swap px and dp in message