> -            if ((~(sr13 & 0x08)) & (sr13 & 0x04)) {
> +            if ((!(sr13 & 0x08)) & (sr13 & 0x04)) {

> -        } else if ((sr13 & 0x08) && (~(sr12 & 0x10))) {
> +        } else if ((sr13 & 0x08) && (!(sr12 & 0x10))) {

Do you see the difference here?  Also the first if should use
an && between the two maskings.

Benno

-- 
http://www.fastmail.com - Email service worth paying for. Try it for free

_______________________________________________
Openchrome-devel mailing list
Openchrome-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/openchrome-devel

Reply via email to