02-09-2004, 12:17 PM
No libraries, interrupts, or call absolute...source and example are here. Hope you PureQB nuts find a use for it.
Code:
'===============================================================
' SuperPut by Plasma
' Props to Rel for the original idea and RelSpriteFlip
'---------------------------------------------------------------
' Replaces QB's graphics PUT with Rel's optimized routine that
' supports clipping, transparency, and flipping.
'---------------------------------------------------------------
' Clipping: Sprites will be clipped if they are partially
' off-screen, rather than returning "Illegal Function
' Call". This also means you can pass negative
' coordinates.
'
' Transparency: Color 0 is always the transparent color,
' except when the PSET actionverb is passed
' (transparency is then ignored).
'
' New PUT actionverbs: XOR - not flipped (default)
' PSET - not flipped &
' no transparency
' PRESET - flipped horizontally
' OR - flipped vertically
' AND - flipped horizontally &
' vertically
'---------------------------------------------------------------
' * Works with SCREEN 13 only
' * Fully compatible with SetVideoSeg :)
' * Compatible with: QBasic 1.x
' QuickBasic 4.x (IDE & compiled)
' QB PDS 7.1 (IDE & compiled)
' VBDOS 1.0 (IDE & compiled)
'
' Note: If you compile your program, it must be compiled as
' a stand-alone EXE!
'===============================================================