|
1 | | -/* $NetBSD: gftfb.c,v 1.36 2026/02/15 05:39:42 macallan Exp $ */ |
| 1 | +/* $NetBSD: gftfb.c,v 1.37 2026/02/15 07:01:20 skrll Exp $ */ |
2 | 2 |
|
3 | 3 | /* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */ |
4 | 4 |
|
@@ -960,7 +960,7 @@ gftfb_putchar(void *cookie, int row, int col, u_int c, long attr) |
960 | 960 | gftfb_wait(sc); |
961 | 961 | } else |
962 | 962 | gftfb_wait_fifo(sc, he); |
963 | | - |
| 963 | + |
964 | 964 | if (ri->ri_font->stride == 1) { |
965 | 965 | uint8_t *data8 = data; |
966 | 966 | for (i = 0; i < he; i++) { |
@@ -1045,7 +1045,7 @@ gftfb_putchar_aa(void *cookie, int row, int col, u_int c, long attr) |
1045 | 1045 | * This is for masking off pixels at the end of a line if it's not a |
1046 | 1046 | * multiple of 4. Would be nice if we knew where the clipping registers |
1047 | 1047 | * live... |
1048 | | - */ |
| 1048 | + */ |
1049 | 1049 | mask = 0xf0000000 << (4 - (wi & 3)); |
1050 | 1050 |
|
1051 | 1051 | data8 = WSFONT_GLYPH(c, font); |
@@ -1079,7 +1079,7 @@ gftfb_putchar_aa(void *cookie, int row, int col, u_int c, long attr) |
1079 | 1079 | } |
1080 | 1080 | /* if we have pixels left in latch write them out */ |
1081 | 1081 | if ((i & 3) != 0) { |
1082 | | - latch = latch << ((4 - (i & 3)) << 3); |
| 1082 | + latch = latch << ((4 - (i & 3)) << 3); |
1083 | 1083 | /* make sure we write only the pixels in the latch */ |
1084 | 1084 | gftfb_write4(sc, NGLE_BINC_MASK, mask); |
1085 | 1085 | gftfb_write4(sc, NGLE_BINC_DATA_R, latch); |
@@ -1265,7 +1265,7 @@ gftfb_do_cursor(struct gftfb_softc *sc, struct wsdisplay_cursor *cur) |
1265 | 1265 | gftfb_wait(sc); |
1266 | 1266 | gftfb_write4(sc, NGLE_IBO, 0x300); |
1267 | 1267 | gftfb_write4(sc, NGLE_PLANEMASK, 0xffffffff); |
1268 | | - gftfb_dba(sc, |
| 1268 | + gftfb_dba(sc, |
1269 | 1269 | BA(IndexedDcd, Otc32, 0, AddrLong, 0, BINcmask, 0)); |
1270 | 1270 | gftfb_write4(sc, NGLE_BINC_DST, 0); |
1271 | 1271 | for (i = 0; i < 128; i += 2) { |
|
0 commit comments