Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FB Win32 and SCREEN() function.
#1
Ok I set my screen mode with:

Code:
SCREEN 21, 8, 8, 1

And I print something on the screen with a regular print statement.

Code:
DIM TempScreen(80,25)
CLS
PRINT "THIS IS A TEST"
PRINT "THIS IS ANOTHER TEST"
PRINT "THIS IS A TEST OF TESTS"

I loop through the screen to store the screen contents:

Code:
FOR OuterCounter = 1 to 30
    FOR InnerCounter = 1 to 4
        TempScreen(OuterCounter, InnerCounter) = SCREEN(InnerCounter, OuterCounter, 0)
    NEXT InnerCounter
NEXT OuterCounter

I replace the existing text with new text. with LOCATE 1,1 and a couple of print statements


Then I loop back to restore the screen contents.

Code:
FOR OuterCounter = 1 to 30
    FOR InnerCounter = 1 to 4
        LOCATE InnerCounter, OuterCounter
        PRINT TempScreen(OuterCounter, InnerCounter)
    NEXT InnerCounter
NEXT OuterCounter

This techniques works fine in SCREEN 0, but as soon as I try a graphics mode of any type, it fails, it reports no errors, but blanks are printed instead of the character that are supposed to be there.

What's wrong with this?
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#2
Simple: the SCREEN() function only works in text mode... Should really sit down and modify this so it works also in gfx mode...
ngelo Mottola - EC++
Reply
#3
damn...yeah I agree...it should be changed, a character is a character after all....and I'd sure need it....:-)...
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)