home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
CRT_WAIT.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
51 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME CRT_WAIT.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NBV1.INC"
SCREEN 12
CLS
GraphicSETUP
COLOR 7, 0
? "┌─────────────────────────────────────────────────────────────────────────
? "│ GRFwaitRefresh ( ScanLine% )
? "│
? "│ PURPOSE: pause until the VGA scanline has passed Scanline% line number
? "│ PARAMS: ScanLine% the number of the row to be passed ( 0 -> 479 )
? "│
? "│ NOTE: VGAwaitRetrace provides a more general purpose version of this
? "│ this routine but this one is used by the DAS-NBV? libraries
? "│
? "│ To be honest, with today's CPU's and the speed they move at this may
? "│ well be a throw-back to what equates to the stoneages! So, unless you
? "│ experiance some problems with flickering, don't even worry about it!
? "└─────────────────────────────────────────────────────────────────────────
DELAY 1 '┌─────────────────────────────
GRFwaitRefresh 0 '│ wait until the refresh has
GBoxFill 0, 250, 319, 479, "", 3, 1 '│ passed the top of the box
'│ for flicker-free drawing
DELAY 1 '│
GRFwaitRefresh 400 '│ this should flicker but
GBoxFill 320, 250, 639, 479, "", 3, 15 '│ you'll have to be quick
'│ to see it
WHILE NOT INSTAT : WEND '│
CLS '│
SCREEN 0 '└────────────────────────────