Re: A83: invert part of screen


[Prev][Next][Index][Thread]

Re: A83: invert part of screen




I believe he meant a rectangular portion of the screen.

Chris DC wrote:
> 
> do you mean like text?  If so it's very easy.
> the command is:
> set textInverse, (iy+textflags)
> now all the text displayed will be white with a black
> box around it.  To stop all the text after that from
> being inverted the command would be:
> res textInverse, (iy+textflags)
> 
> Here is an example:
> 
>  call _clrLCDFull
> 
>   set textInverse, (iy+textflags) ; Sets inverse.
> 
>   ld hl,0000h
> 
>   ld (CURCOL),hl
> 
>   ld hl,str1
> 
>   call _vputs
> 
>   res textInverse, (iy+textflags) ; Resets inverse.
> 
>   ld hl,0100
> 
>   ld (CURCOL),hl
> 
>   ld hl,str2
> 
>   call _puts
> 
>   ret
> 
> str1:
> 
>   .db "Inverse Text.",0
> 
> str2:
> 
>   .db "Normal Text.   ",0
> 
> .end
> 
> I hope I helped you.
> 
> --- "Fam. Engelen" <engelen@hotpop.com> wrote:
> > What would be the fastest/best way to invert a
> > (variable) part of the screen (a box with something
> > in it, for making a menu)?
> >
> > Arnout
> > arnout.engelen@beer.com
> >
> 
> =====
> - And the gods opened up the heavens, and only one stood forth.  That one was Chris...
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

-- 
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
TimeCity AI Guy II - www.timecity.org
Member of TCPA - tcpa.calc.org
__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html


References: