Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
screen stretch
#6
(08-22-2025, 03:34 PM)SMcNeill Wrote: Since you're using WIDTH as a command, is it safe to assume that this is a SCREEN 0 screen?

IF so, the simplest solution is to just use _LOADFONT to load a custom font at a larger size and then set it as your screen font.  

fonthandle = _LOADFONT("courbd.ttf", 64, "monospace")
_FONT fonthandle

Otherwise you're going to be looking at running your program in one screen, then scaling with _PutImage to a different size screen, and displaying the scaled screen instead of the original.  That'd be quite a bit more work, and I was trying to give you the simple solutions first.

$RESIZE:STRETCH is good for grabbing a corner and resizing a screen without changing dimensions or print locations and such.
_FULLSCREEN (as bplus suggested) works nicely as well, if you don't mind using the whole screen to display your program.

Otherwise, in SCREEN 0, you can adjust size by changing the screen font size as above.

If none of those are sufficient, then you have to just bite the bullet and create a second screen, put the first screen on it in your display loop, and then display that second screen.  This might require translation of mouse coordinates and such thing as the user will be interacting with the larger screen instead of your smaller screen, so keep those things in mind if you decide to go that route.
thank you .. the second screen option sound the go. I did not think of that...
Reply


Messages In This Thread
screen stretch - by pmackay - 08-22-2025, 09:55 AM
RE: screen stretch - by SMcNeill - 08-22-2025, 10:07 AM
RE: screen stretch - by pmackay - 08-22-2025, 10:10 AM
RE: screen stretch - by bplus - 08-22-2025, 01:49 PM
RE: screen stretch - by SMcNeill - 08-22-2025, 03:34 PM
RE: screen stretch - by pmackay - 08-23-2025, 05:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  No warning to mix screen 0 and screen graphic commands! TempodiBasic 8 1,792 06-16-2023, 11:36 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)