Changeset 09d1345 in buchla-68k for vlib/vtext.c
- Timestamp:
- 07/15/2017 10:03:02 AM (7 years ago)
- Branches:
- master
- Children:
- bf89cfb
- Parents:
- 6a37d5b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlib/vtext.c
r6a37d5b r09d1345 10 10 #include "ram.h" 11 11 12 static int16_t msk[] = { 0xFF00, 0x00FF };12 static uint16_t msk[] = { 0xFF00, 0x00FF }; 13 13 14 void vtext(uint16_t *obj, uint16_t nc, uint16_t row, uint16_t col, int8_t *ip)14 void vtext(uint16_t *obj, int16_t nc, int16_t row, int16_t col, int8_t *ip) 15 15 { 16 16 register uint16_t *op; … … 20 20 op = obj + ((nc >> 1) * row) + (col >> 1); 21 21 22 *op = (*op & (uint16_t)msk[col & 1]) |23 (( *ip++ & 0x00FF) << ((col & 1) ? 8 : 0));22 *op = (*op & msk[col & 1]) | 23 ((uint16_t)(*ip++ & 0x00FF) << ((col & 1) ? 8 : 0)); 24 24 25 25 col++;
Note:
See TracChangeset
for help on using the changeset viewer.