A large number of my programs contain a moveable, resizable outline -
and with GD2 colours.
You need to set OVER -1 (or iow.sova with DM_XOR [if that is -1]).
Then print the outline (which must not be coloured black!). To move
the outline you need to print it again (in the same place) so that it
disappears. This is because a XOR (a XOR b) = b. You can now print
the outline in a different place. I can confirm that this procedure
works in C68 since I have just written a short test program to see if
it did.
George
On 9 Oct 2005, at 07:41, James Hunkins wrote:
Guys,
As part of QDT's drag and drop, I am trying to set the mode into
xor to allow me to temporarily put an outline onto a part of the
window and then restore it.
I am doing this with C68 (basically calls the machine code
wrapper), using the iow_sova call. When I set the mode to DM_OVER,
it draws my outline OK. However, when I set it to DM_XOR, it does
draw anything. I also found this to be true if I set it to DM_OR.
Is there a limitation with high color modes and drawing in OR or
XOR mode?
In SuperBasic it works fine in the original QL color mode.
Does anyone have an alternate suggestion to drawing a temporary
outline and then being able to restore it on different parts of the
screen?
Thanks for the help,
jim
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm