Changeset 7258c6a in buchla-68k for vlib/vtext.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlib/vtext.c
r0292fbb r7258c6a 8 8 */ 9 9 10 static int msk[] = { 0xFF00, 0x00FF };10 static int16_t msk[] = { 0xFF00, 0x00FF }; 11 11 12 void vtext(u nsigned *obj, unsigned nc, unsigned row, unsigned col, char*ip)12 void vtext(uint16_t *obj, uint16_t nc, uint16_t row, uint16_t col, int8_t *ip) 13 13 { 14 register u nsigned*op;14 register uint16_t *op; 15 15 16 16 while (*ip) { … … 18 18 op = obj + ((nc >> 1) * row) + (col >> 1); 19 19 20 *op = (*op & (u nsigned)msk[col & 1]) |20 *op = (*op & (uint16_t)msk[col & 1]) | 21 21 ((*ip++ & 0x00FF) << ((col & 1) ? 8 : 0)); 22 22
Note:
See TracChangeset
for help on using the changeset viewer.