This seems to be used as the pitch for the Surface returned by OSystem::lockScreen. If that's the case this needs to be *fixed* and not refactored. There is no way you can assume you get 2 * the physical width as pitch.

An example where this is not the case: The iOS backend for non-CLUT8 modes. It will return 2 * width if and only if width is a power of two. Otherwise it will return a value greater than 2 * width.