In gamemaker you can do it with views. Just set your view to 160x144, and your viewport to 320x288. (or bigger) This will display only the allowed pixels but scale them up by two to make the screen bigger. There's also a better way but I haven't really grasped it yet.