(graphics): resize the video adapter according to the size of the window
Description
For now, the adapter is resized by taking only the height by cutting the sides if the video exceeds. The adapter should take the height and width into account. It would be nice to be able to configure the adapter with three modes: height (default), width, or both.