home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
GRFSETUP.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
4KB
|
63 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME GRFSETUP.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"
CLS
SCREEN 12
GraphicSETUP
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ Before using any of the routines and functions in the VGA package you
? "│ need to make a one-time call to GraphicSETUP. This allows a series of
? "│ internal variables to be set to their defaults for the graphic screen
? "│ you are using. Most of the .ASM routines work on CGA, HERC, EGA, and
? "│ in monochrome and color but, be warned, their primary job is VGA color
? "│ and you may find some anomolies if you can still find CGA, HERC, and/or
? "│ EGA screens!
? "│ You need to issue a new call to GraphicSETUP if you change screens also
? "│ but I don't see a program flipping from CGA to VGA?!
? "└────────────────────────────────────────────────────────────────────────
?
'┌───────────────────────────────
PRINT "MAXIMUM COLS:"; fScrnMaxX% '│ just in case you forget!
PRINT "MAXIMUM ROWS:"; fScrnMaxY% '│
PRINT '│
PRINT "MINIMUM WNDO COLS:"; fWndoMinX% '│ window parameters for all the
PRINT "MINIMUM WNDO ROWS:"; fWndoMinY% '│ drawing routines
PRINT "MAXIMUM WNDO COLS:"; fWndoMaxX% '│ (We'll get into this later.)
PRINT "MAXIMUM WNDO ROWS:"; fWndoMaxY% '│
PRINT "MASK ADJUSTMENT: "; fMASKadjust? '│
PRINT '│
PRINT "DEFAULT FOREGROUND:"; fForeground? '│ these are used by the PUT and
PRINT "DEFAULT BACKGROUND:"; fBackground? '│ GET stuff and we'll get back
PRINT "COLOR FLAG: "; fCOLORflag? '│ to all this too.
'└───────────────────────────────
WHILE NOT INSTAT : WEND
SCREEN 0
CLS
$if 0 '┌───────────────────────────────
SetForeground (BYVAL Clr?) '│ set the default foreground
SetBackground (BYVAL Clr?) '│ set the default background
GCOLOR (BYVAL Fore?,BYVAL Back?) '│ set both ───────┘
SetCOLORflag (BYVAL Flag?) '│ 0 = off 1 = on
SetMASKadjust (BYVAL Flag?) '│ 0 = reset 1 = no reset
$endif '└───────────────────────────────