View Single Post
Old 13 December 2012, 13:08   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,346
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]
Suggestion 2: Add an option to make A2024 modes behave like RTG modes with respect to automatic window sizing. So if the window size is 720x568, with auto-sizing enabled the size would increase to 1024x800/1024 when an A2024 mode becomes active, just like RTG modes. [At the moment the user has to manually increase window size to show the whole A2024 display.]
mark_k is offline  
 
Page generated in 0.04477 seconds with 11 queries