VGA Fonts: Difference between revisions

Jump to navigation Jump to search
m
Erm - someone used boolean NOT (!) when they meant bitwise NOT (~). Names suppressed to protect the guilty...
[unchecked revision][unchecked revision]
(Added optimised character drawing example)
m (Erm - someone used boolean NOT (!) when they meant bitwise NOT (~). Names suppressed to protect the guilty...)
Line 171:
mask_high = mask_table[*src][1];
dest32 = dest;
dest32[0] = (bgcolor32 & !~mask_low) | (fgcolor32 & mask_low);
dest32[1] = (bgcolor32 & !~mask_high) | (fgcolor32 & mask_high);
}
src++;
Line 196:
mask_high = mask_table[*src][1];
dest32 = dest;
dest32[0] = (dest[0] & !~mask_low) | (fgcolor32 & mask_low);
dest32[1] = (dest[1] & !~mask_high) | (fgcolor32 & mask_high);
}
src++;
250

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu