![]() |
DPI aware? - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: DPI aware? (/showthread.php?tid=3557) |
DPI aware? - Jack - 03-25-2025 I have my PI-5 hooked up to a large screen 3840x2160 and changed the default display setting for large screen, I don't know the actual aspect ratio as there were only 3 options, set default for large, medium or small screen setting the default for large screen works well except for QB64pe, if I change the Font size in pixels from 19 to 21 then the IDE looks ok but the programs display in a tiny window with tiny fonts, same when using $Console:Only any plans to make QB64pe DPI aware ? RE: DPI aware? - Kernelpanic - 03-27-2025 I guess DPI isn't going anywhere. ![]() RE: DPI aware? - James D Jarvis - 03-30-2025 (03-25-2025, 01:56 PM)Jack Wrote: I have my PI-5 hooked up to a large screen 3840x2160 and changed the default display setting for large screen, I don't know the actual aspect ratio as there were only 3 options, set default for large, medium or small screen Not sure it will meet all of your needs but one solution is to write most of your program output to a canvas layer and put that canvas layer on a scaled up output screen. This example code creates a canvas layer that is set to fixed pixel size and a main screen that is 80% of your desktop size. Code: (Select All)
RE: DPI aware? - Gets - 04-01-2025 Quickest approach my be to add RESIZE so you can stretch out lower resolution programs. QB64 isn't designed to adjust those parameters for you because they're under the programmer's control or in line with Qbasic various SCREEN settings. If you want relative settings you need to create the functions yourself like James' example. If you want to make adjustments based on system settings, you probably need a library that provides access to them |