If your design resolution size is 960*640(w/h —>3/2), and your device screen ratio is also 3/2, your game will not contain black border. Otherwise, you can not avoid black border on the side of screen. Because we are using the same ratio for width and height to scale.