Re: [ql-users] XOR in high color mode
There is then no difference! My box was made up of four blocks. However, I think the width of my vertical blocks is 2. A width of 1 is probably too small. George . On 10 Oct 2005, at 18:09, James Hunkins wrote: Hi George, That is exactly what I am doing. The only difference is that I am using block writes to do fast lines (width of 1). Could you forward me your test program directly to see if I can see any other difference? Thanks, jim On Oct 10, 2005, at 12:00 PM, George Gwilt wrote: 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [ql-users] XOR in high color mode
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
Re: [ql-users] XOR in high color mode
Hi George, That is exactly what I am doing. The only difference is that I am using block writes to do fast lines (width of 1). Could you forward me your test program directly to see if I can see any other difference? Thanks, jim On Oct 10, 2005, at 12:00 PM, George Gwilt wrote: 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 ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm