Re: [Freedos-devel] VGA frame rates and mouse

2018-07-22 Thread David McMackins
> 1) new pixels = (old pixels & mask1) | (new pixels & mask2) > > Where mask1 and mask2 are the negated forms of each other. > This even works for alpha masks: > > 2) new pixels = (old pixels "*" mask1) "+" (new pixels "*" mask2) I understand what you're going for in principle, but I'm not sure wh

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-22 Thread Eric Auer
Hi David, >> 1) new pixels = (old pixels & mask1) | (new pixels & mask2) >> >> Where mask1 and mask2 are the negated forms of each other. That one only works for boolean masks, but it works on 386. >> This even works for alpha masks: >> >> 2) new pixels = (old pixels "*" mask1) "+" (new pixels

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-22 Thread David McMackins
>>> 1) new pixels = (old pixels & mask1) | (new pixels & mask2) >>> >>> Where mask1 and mask2 are the negated forms of each other. > > That one only works for boolean masks, but it works on 386. By boolean mask, do you mean something like all 1s over the colors for opaque and all 0s for transparen

Re: [Freedos-devel] VGA frame rates and mouse

2018-07-22 Thread Mateusz Viste
On Sun, 22 Jul 2018 19:48:20 -0500, David McMackins wrote: > By boolean mask, do you mean something like all 1s over the colors for > opaque and all 0s for transparent? The way I've got it now is just 1 bit > in the color byte represents opacity. It's either opaque or transparent, > and then the re