1. A question about NEIL
For my mouse routine, it works, sorta, in all modes. But somehow, my
way of reshowing the background isn't working, for the mouse cursor is
constantly being reshown, so eventually the whole screen is full of
'em. My library has no problems with variable types or
not-given-a-value type of errors.
Here are the 2 routines I think may be the problem:
1) the local routine draw_cursor()
procedure draw_cursor(integer x,integer y)
atom addr,offx,offy
addr=cursors[current_cursor][1]--current cursor's address in RAM
offx=cursors[current_cursor][2][1]--current cursor's x offset
offy=cursors[current_cursor][2][2]--current cursor's y offset
if show_mouse then
if not addr1 then
addr1=virtual_screen(32,32)
end if
if not addr2 then
addr2=virtual_screen(32,32)
end if
display_image({0,0,addr2},save_image(x-offx,y-offy,32,32)) --get a
32x32 area into background
do_command(blit,{addr2,0,0,32,32},{addr1,0,0}) --copy the background
to the 'mixer'
do_command(clear_blit,{addr,0,0,32,32},{addr1,0,0})--copy
cursor to
'mixer'
do_command(screen_blit,{addr1,0,0,32,32},{screen,x-offx,y-offy})
else --show_mouse is 0
do_command(screen_blit,{addr2,0,0,32,32},{screen,x-offx,y-offy})
--copy old background to screen
end if
end procedure
---end
please let me know if this one is wrong. Otherwise my library works.
Thanks,
Mike Hurley
===
::dozes off::
zzzzzzzzputerzzzzzzs kxhaaaaaaaaahshoooooooooooo comzzzzzp
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com