Skip to content
Snippets Groups Projects
Commit 09278da6 authored by minute's avatar minute
Browse files

gfx: fix NEOR minterm, contributed by tom w.

parent 5975c1d6
No related branches found
No related tags found
No related merge requests found
...@@ -390,7 +390,7 @@ enum gfx_minterm_modes { ...@@ -390,7 +390,7 @@ enum gfx_minterm_modes {
s &= d; \ s &= d; \
SET_FG_PIXEL8_MASK(0); break; \ SET_FG_PIXEL8_MASK(0); break; \
case MINTERM_NEOR: \ case MINTERM_NEOR: \
d ^= (s & mask); break; \ d ^= ~(s & mask); break; \
case MINTERM_DST: /* This one does nothing. */ \ case MINTERM_DST: /* This one does nothing. */ \
return; break; \ return; break; \
case MINTERM_NOTONLYSRC: \ case MINTERM_NOTONLYSRC: \
...@@ -466,9 +466,9 @@ enum gfx_minterm_modes { ...@@ -466,9 +466,9 @@ enum gfx_minterm_modes {
case MINTERM_NEOR: \ case MINTERM_NEOR: \
switch (color_format) { \ switch (color_format) { \
case MNTVA_COLOR_16BIT565: \ case MNTVA_COLOR_16BIT565: \
((uint16_t *)d)[x] ^= (s & color_mask); break; \ ((uint16_t *)d)[x] ^= ~(s & color_mask); break; \
case MNTVA_COLOR_32BIT: \ case MNTVA_COLOR_32BIT: \
d[x] ^= (s & color_mask); break; \ d[x] ^= ~(s & color_mask); break; \
} break; \ } break; \
case MINTERM_DST: /* This one does nothing. */ \ case MINTERM_DST: /* This one does nothing. */ \
return; break; \ return; break; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment