emicarra
Member
Hello, i'm trying to scale the view port to be the biggest possible without changing camera size and while keeping the aspect ratio. And then bring the view port to the top of the screen, so i have enough room on the bottom of the screen to add buttons, which i know i can achieve by using gui_maximize.
I tried using the built in option Keep Aspect Ratio, but the problem with this is that it doesn't make it pixel perfect, i can notice distorted pixels. So i tried coding it by myself reading the manual, but i can't understand why it doesn't work, changing the view port size with 'view_set_wport' doesn't have any effect, so how can i get the view port to its maximum size on the screen without changing the camera size?
This is my desired result:
I tried using the built in option Keep Aspect Ratio, but the problem with this is that it doesn't make it pixel perfect, i can notice distorted pixels. So i tried coding it by myself reading the manual, but i can't understand why it doesn't work, changing the view port size with 'view_set_wport' doesn't have any effect, so how can i get the view port to its maximum size on the screen without changing the camera size?
This is my desired result: