Pygame window resolution issue on raspberry pi

I am trying to use a raspberry pi that has a screen to display an image full size. I am using pygame to display the image but whenever the window pops up, there is an area on top where it is completely blacked out. The resolution on the raspberry pi is 1280x720 which is what I’m fitting the image to. Just wondering if there have been similar issues where I can change the raspberry pi settings relating to the resolution to solve this problem. Thank you in advance.