English Amiga Board

Go Back   English Amiga Board > Support > support.WinUAE

Thread Tools
Old 10 December 2017, 18:16   #1
Registered User
Join Date: Aug 2004
Posts: 2,966
Fallback GUI font for low-res modes?

Would it be possible to automatically fall back to a small font when a low-resolution full-screen mode is in use? E.g. MS San Serif/5 seems to allow most GUI controls to show in 720×480 or 800×600 mode.

By the way, with GUI open in a low-res full-screen mode like that, checking "Fullscreen GUI" makes the left-side tree view far too wide so other controls are no longer visible.

Edit to add: Also, when fullscreen GUI is checked could you make the GUI window borderless full-screen, i.e. without window title bar?

And, checkboxes and radio buttons seem a little too large when using a font like MS San Serif/5. The top row(s) of pixels seem to get cut off. That depends on the Windows scaling factor. I tried with 100% (OK) and 175% (cut-off controls). WinUAE does increase the height of the settings window to account for the larger title bar font, but for whatever reason Windows or WinUAE scales the controls slightly. Archive with a couple of pics:
Edit: Embedded pics

Last edited by mark_k; 31 December 2017 at 18:09.
mark_k is offline  
Old 30 December 2017, 00:21   #2
Registered User
Join Date: Aug 2004
Posts: 2,966
Another minor issue which I noticed with a small settings window... on the Miscellaneous settings page, the listview shows various options. If the settings window height is small enough a vertical scrollbar appears on the listview. However a horizontal scrollbar also appears, even though it isn't needed. (Which reduces the number of visible items.)
mark_k is offline  
Old 30 December 2017, 12:49   #3
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 22,107
Too late for 3.6.0, later..
Toni Wilen is offline  
Old 03 January 2018, 16:48   #4
Registered User
Join Date: Aug 2004
Posts: 2,966
Looking at the second pic in the post above, Windows uses the same font & scaling for the settings window title bar as when the desktop is at monitor-native high res, even though the full-screen mode is much lower resolution. That wastes precious screen space. Is it possible to specify a smaller font for the window title bar?

I don't think there's a way to tell Windows to use a specific font/size for an individual window. You could use SystemParametersInfo() with SPI_GETNONCLIENTMETRICS / SPI_SETNONCLIENTMETRICS, specifying a smaller value for the lfCaptionFont field of the NONCLIENTMETRICS structure. But that seems to be a system-wide change. That could still be feasible — change when you switch to full-screen mode, revert to original value on exiting full-screen — but doesn't seem a very nice thing to do since it could affect other apps.

A possible alternative would be to open the settings window with the WS_EX_TOOLWINDOW extended window style. From that page:

"The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE."

Not appearing in the taskbar or Alt-Tab switcher may not be a problem if you're in full-screen mode. I wonder what happens if you specify (WS_EX_TOOLWINDOW | WS_EX_APPWINDOW)?

"The window is palette window, which is a modeless dialog box that presents an array of commands."
mark_k is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pinball brain damage (amiga cd) low res problem dark13 support.WinUAE 2 30 May 2015 01:14
Font too small in iGame and WBInfo in ClassicWBFULLv28 NTSC:High Res Ranthalion75 project.ClassicWB 1 26 April 2014 01:37
iGame screenshots on low res/colour displays Bloodwych support.Apps 8 18 August 2009 00:27
New font on WinUAE GUI is unreadable..not to mention ugly InfoVS support.WinUAE 69 03 June 2007 01:43
Low-res tick-box????? crl support.WinUAE 1 28 August 2003 11:10

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06139 seconds with 14 queries