setFrameZoomFactor for all platform

Hi.

I read the article [http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_debug_games_for_ipad_retina_on_low-resolution_PC] and was pleasantly surprised.
This is exactly what can help us fight with multiresolutions in mobile platform.
But i cant find that implementation on iOS and Android, so i try implement by itself.
Viewport zoomed properly but his position not centered (he is in left botom corner).

Please tell me how to center the viewport.