Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Square Images are stretched in windowed mode...

Author
Message
JoeOh45240
7
Years of Service
User Offline
Joined: 14th Feb 2017
Location: USA
Posted: 22nd Dec 2019 20:51 Edited at: 22nd Dec 2019 20:52
I am making a windowed program that is 480x800 pixels for something I am testing out. I got the 3D objects to look right with the Set Camera Aspect function. Is there an equivalent to the 2D screen? When I am in windowed mode square images that I am pasting to the screen are not square, they are squished quite a bit. I'm really stumped on this and here's the code:

zero32
7
Years of Service
User Offline
Joined: 28th Jul 2016
Location:
Posted: 24th Dec 2019 18:12 Edited at: 24th Dec 2019 18:14
Well, you have the answer commented out at the first line.
Set display mode will give you a window with the exact resolution you want, while set window size only resizes the window scaling and squishing the default resolution in the process.
"It is only slightly easier than changing all sugar in a cake into stevia after it has already been baked" -Bisqwit
JoeOh45240
7
Years of Service
User Offline
Joined: 14th Feb 2017
Location: USA
Posted: 24th Dec 2019 20:46
I remmed out the first line tho. And If I just so the "set display mode 480, 800, 32" by itself with the "window on" function, it still squishes the square images. Even if I leave out the "window resize" function. So what then?

Login to post a reply

Server time is: 2024-03-29 10:52:26
Your offset time is: 2024-03-29 10:52:26