Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
screen stretch
#1
hi people.. I need some help... I need to strech the screen to make things bigger. i am using screen mode 0: i have the command Width of 28 x 36 chars.... 

Code: (Select All)
SETMODE: WIDTH 28, 36: _CONTROLCHR OFF: RETURN
I want to keep this as is because my mouse and screen are already coded to suit... I only want to make it bigger. just like using the mouse and stretching for open to a stretch size as in like 85% of screen.
[Image: ss.png]
Reply
#2
$RESIZE:STRETCH

Then resize the window by stretching any corner.
Reply
#3
(08-22-2025, 10:07 AM)SMcNeill Wrote: $RESIZE:STRETCH

Then resize the window by stretching any corner.
is there anyway to resize the window with a command so it is set on opening.
Reply
#4
and you've already considered and rejected _FullScreen?
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#5
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.
Reply
#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


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: