13 December 2012, 13:08 | #1 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
Automatic window resizing and track display issue
First a minor issue with the status bar track display. (I mentioned this in another thread but only by editing my post, so maybe you missed it.) Boot a demo which kills the system so trackdisk.device doesn't step the heads. Wait until demo loads and disk activity stops. Change graphics API. The floppy drive track indicators are blank. The indicators are only refreshed when the drive is next accessed. The same happens if you start with borderless window then change to standard.
A couple of suggestions related to window sizing. Currently WinUAE behaves differently with respect to window sizing for native chipset (including A2024) versus RTG modes. For native modes WinUAE uses the user-specified window size. If that is larger than the native mode in use, the native display is centred in the larger window. For RTG modes WinUAE always resizes the window to match the RTG mode size. The window reverts to the user-specified size when a native mode screen is next shown. Suggestion 1: Most of the time the RTG-mode-auto-window-sizing is a good thing. But if the user already manually set the window size larger than the RTG mode, the window doesn't need to be resized. Example: user manually set window size to 1024x800. Normal native modes are centred in the window. User changes Workbench to RTG 800x600 and the window decreases in size, even though the RTG display would fit within the existing size. You could have logic like this when an RTG mode becomes active: Code:
new_width = max(user_specified_width, RTG_mode_width) new_height = max(user_specified_height, RTG_mode_height) need_to_resize = (new_width > user_specified_width) || (new_height > user_specified_height) if (need_to_resize) [handle changing window size] |
13 December 2012, 13:50 | #2 | |||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Quote:
Quote:
Quote:
|
|||
13 December 2012, 14:37 | #3 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
|
13 December 2012, 19:41 | #4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
I guess something like "Do not resize if smaller" is needed. Does the same as the other option but only centers.
|
14 December 2012, 15:11 | #5 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
Yep, that's pretty much what my suggestion 1 was, except in far fewer words. It would stop the window size changing back and forth if the user switches between native and RTG modes many times in a session. And it would also allow the user to have a black border around RTG mode screens, if they prefer that.
|
26 December 2012, 20:50 | #6 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
"Always center" added. Usual url to winuae.zip. Not really tested, it is your problem
|
26 December 2012, 21:16 | #7 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
Okay, after a quick test of the Always center option...
With RTG modes smaller than the manually-set window size, I noticed the mouse pointer isn't clipped to the RTG display area. E.g. move it to bottom right of screen and the pointer hangs off the corner of the RTG display area. I'm not sure whether that's a bug or is actually a good thing. When switching to an RTG mode which is larger than the current window size, the window does not increase in size to accommodate the full RTG display. Open question: when using such a large RTG display, if the window size were increased automatically, should it revert to the user-specified size when a smaller screen comes to the front? |
27 December 2012, 15:37 | #8 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Quote:
Quote:
Not fully visible RTG screen can cause side-effects I don't want handle = always scale if window becomes smaller (by user resize) I think I'll also add RTG integer scaling option (similar to Filter panel integer scale option) EDIT: Reverting to original size is actually automatic because it simply needs to go back to whatever Display panel window size says. Last edited by Toni Wilen; 27 December 2012 at 15:50. |
||
27 December 2012, 18:44 | #9 | |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,333
|
Quote:
That would be very useful for use with AROS, where even 320x200 screens can be RTG. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Windowed mode display clips window borders slightly | mark_k | support.WinUAE | 6 | 08 December 2012 19:27 |
Utility that allows resizing from window borders? | mark_k | request.Apps | 4 | 08 March 2012 23:12 |
Small issue with string gadgets in settings window | mark_k | support.WinUAE | 0 | 07 March 2012 19:05 |
"automatic resize" display configuration | dazel | support.WinUAE | 1 | 08 November 2010 07:57 |
Using a predefined res. to display the WB properly when in window mode -RTG'd WB only | NewDeli | New to Emulation or Amiga scene | 60 | 16 October 2009 08:41 |
|
|