Code: Select all
SCREEN 7, , 0, 1
line (0,0)-(319,199), 15, bf
PCOPY 0, 1
line (0,0)-(319,199), 0, bf
sleep
Edit: Apparently Mr. counting pine fixed it two months ago in the .22 svn. Thanks, counting pine...
Code: Select all
SCREEN 7, , 0, 1
line (0,0)-(319,199), 15, bf
PCOPY 0, 1
line (0,0)-(319,199), 0, bf
sleep
Code: Select all
SCREEN 7, 0, 1, 0
LINE (0, 0)-(319, 199), 15, BF
PCOPY 1, 0
LINE (0, 0)-(319, 199), 0, BF
SLEEP
Code: Select all
SCREEN 7, 0, 2 'remember we are setting the amount of pages, NOT the active page
SCREENSET 1, 0 'this is the equavilent of the latter part of QB Screen args
LINE (0,0)-(319,199), 15, BF
PCOPY 1, 0
LINE (0,0)-(319,199), 0, BF
SLEEP
lol, I know what you meant, but my difference stands. The reason is that the way FB handles screens does not change even if you use -lang qb. And yes, the way QB handles screens would need an extra comma, as Iagamemnus wrote:LANG QB mode, lol. I put it in the title... :P
It doesn't work in -lang qb mode.
Edit: I missed a comma. It should be "SCREEN 7, , 0, 1" I believe... doesn't work either way.
The FreeBASIC documentation details the structure of the instruction "Screen (graphics)" and the differences depending on dialect :Prime Productions wrote:Wait a minute, maybe you do have something.
I just figured out that if I was right about FB not changing it's argument structure, than the program should fullscreen:
SCREEN 7, 0, 0, 1
The 1 would be telling the program to fullscreen, which it does not, meaning that the structure is different in -lang qb mode.
If that is so than maybe you are right.
-David
I'm not sure if that correctly reflects the compiler, though.. it needs another parameter: the colorswitch%. And, the main part is that it doesn't work correctly anyways! (The screen needs to be white, not black.)# In the -lang qb dialect, the usage is:
Screen [mode] [,[active_page][,[visible_page]]]
Code: Select all
Screen [mode%] [,[colorswitch%] [,[activepage%][,[visiblepage%]]]
to:Screen [mode] [,[colormode][,[active_page][,[visible_page]]]]
Edit: Oh.. one more thing. Perhaps FB is due for another release? This bug/bug fix is pretty serious for people trying to port their QB games over to FB...Screen [mode] [, [colormode] [, [active_page] [, [visible_page]]]]