Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to determine the screen scaling factor within QB64?
#1
I posted earlier about an issue involving font sizes on a screen. I've figured out how I can perform manual calculations, but I need to know the screen scaling factor to make my calculations.

Is there some way that I can ascertain the scaling factor from within QB64?
Reply
#2
Use _DeskTopWidth, _DeskTopHeight for maximum screen pixels, scale from those numbers.
b = b + ...
Reply
#3
Did you check out my post, here?

https://qb64phoenix.com/forum/showthread.php?tid=337

_HEIGHT
_WIDTH
_FONTHEIGHT
_FONTWIDTH
Shoot first and shoot people who ask questions, later.
Reply
#4
Just to follow up and close the loop on this question, using the _FONTHEIGHT and _FONTWIDTH worked perfectly for me. The calculations work perfectly using that.
Reply




Users browsing this thread: 1 Guest(s)