diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2021-01-09 18:20:48 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2021-01-09 18:20:48 +0000 |
commit | 9ae30b7a0ff4178f399a7f9422d279e885f2b614 (patch) | |
tree | fe2a8fe7ec0af7af7ddfb400a5cda696b3dbc746 | |
parent | 0c9bda16247517850d483ad8222111fd7f2725fe (diff) |
Include the optimized putchar functions only if RASOPS_SMALL is not
defined, as was previously the case.
OK kettenis@
-rw-r--r-- | sys/dev/rasops/rasops1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/rasops/rasops1.c b/sys/dev/rasops/rasops1.c index 397b4acebda..ef3e767e859 100644 --- a/sys/dev/rasops/rasops1.c +++ b/sys/dev/rasops/rasops1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops1.c,v 1.11 2020/12/21 12:58:42 kettenis Exp $ */ +/* $OpenBSD: rasops1.c,v 1.12 2021/01/09 18:20:47 fcambus Exp $ */ /* $NetBSD: rasops1.c,v 1.11 2000/04/12 14:22:29 pk Exp $ */ /*- @@ -44,7 +44,7 @@ int rasops1_copycols(void *, int, int, int, int); int rasops1_erasecols(void *, int, int, int, uint32_t); int rasops1_do_cursor(struct rasops_info *); int rasops1_putchar(void *, int, int col, u_int, uint32_t); -#if defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN +#if !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN int rasops1_putchar8(void *, int, int col, u_int, uint32_t); int rasops1_putchar16(void *, int, int col, u_int, uint32_t); #endif @@ -58,7 +58,7 @@ rasops1_init(struct rasops_info *ri) rasops_masks_init(); switch (ri->ri_font->fontwidth) { -#if defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN +#if !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN case 8: ri->ri_ops.putchar = rasops1_putchar8; break; @@ -223,7 +223,7 @@ rasops1_putchar(void *cookie, int row, int col, u_int uc, uint32_t attr) return 0; } -#if defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN +#if !defined(RASOPS_SMALL) && BYTE_ORDER == BIG_ENDIAN /* * Paint a single character. This is for 8-pixel wide fonts. */ |