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 / Proportions in windowed mode

Author
Message
XANAX 2B
23
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 24th Jun 2003 13:04
Hello Everybody !

I have a problem with the windowed mode. When I resize my window with the mouse, my picture is stretched, but not proportionnaly. Is it possible to have always a proportionnal resizing ?
(ps : I'm from corsica, sorry if I don't speak english verry well)

:-s
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 24th Jun 2003 21:01
There is a few ways.

1) Set window size every loop preventing resizing (not reccommended).

2) Get window size and resize contents (images) accordingly. See:http://www.darkbasicpro.com/apollo/view.php?t=11701&b=1

3) Get window size and resize other dimension to make it square. For example, if user resizes x, resize y too.

4) Allow user to resize, then have an option to square the window. (from my expirience, this works best)

Hope that helps.

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
XANAX 2B
23
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 25th Jun 2003 13:53
Thanks a lot !

I'll try that immediatly !

Login to post a reply

Server time is: 2026-07-18 07:30:50
Your offset time is: 2026-07-18 07:30:50