Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Line 1 disappears
#9
Here's a quick demo of manually using $RESIZE:ON to change the number of rows and columns which are available on screen, without scaling the display image itself:

Code: (Select All)
$Resize:On
activeScreen = _NewImage(80, 25, 0) 'standard screen 0
Screen activeScreen

DrawBorder
_Delay .25
clearInitialResize = _Resize 'clear thr size change from where QB64 first starts up

Do
    If _Resize Then
        tempScreen = _NewImage(_ResizeWidth \ _FontWidth, _ResizeHeight \ _FontHeight, 0)
        Screen tempScreen
        _FreeImage activeScreen
        activeScreen = tempScreen
        DrawBorder
    End If
Loop Until _KeyHit
System

Sub DrawBorder
    Color 4
    For x = 1 To _Width
        Locate 1, x: Print Chr$(219);
        Locate _Height, x: Print Chr$(219);
    Next
    For y = 1 To _Height
        Locate y, 1: Print Chr$(219);
        Locate y, _Width: Print Chr$(219);
    Next
    Color 15
    Locate _Height \ 2, _Width \ 2 - 12: Print "Resize On, Non-Scale Demo"
    Locate _Height \ 2 + 2, 3: Print "Width:"; _Width
    Locate _Height \ 2 + 3, 3: Print "Height:"; _Height
End Sub
Reply


Messages In This Thread
Line 1 disappears - by BDS107 - 07-20-2022, 09:14 AM
RE: Line 1 disappears - by bplus - 07-22-2022, 04:46 PM
RE: Line 1 disappears - by SMcNeill - 07-22-2022, 05:25 PM
RE: Line 1 disappears - by SMcNeill - 07-22-2022, 05:51 PM
RE: Line 1 disappears - by SMcNeill - 07-22-2022, 05:59 PM
RE: Line 1 disappears - by BDS107 - 07-22-2022, 07:52 PM
RE: Line 1 disappears - by BDS107 - 07-24-2022, 07:10 PM
RE: Line 1 disappears - by SMcNeill - 07-24-2022, 07:50 PM
RE: Line 1 disappears - by admin - 07-24-2022, 08:09 PM
RE: Line 1 disappears - by admin - 07-24-2022, 08:21 PM



Users browsing this thread: 2 Guest(s)