Fixed getting the width and height of the window properly.

- Now fills entire width
- Also fixed inventory drawing.