Changeset 7258c6a in buchla-68k for vlib/vtext.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlib/vtext.c

    r0292fbb r7258c6a  
    88*/
    99
    10 static int      msk[] = { 0xFF00, 0x00FF };
     10static int16_t  msk[] = { 0xFF00, 0x00FF };
    1111
    12 void vtext(unsigned *obj, unsigned nc, unsigned row, unsigned col, char *ip)
     12void vtext(uint16_t *obj, uint16_t nc, uint16_t row, uint16_t col, int8_t *ip)
    1313{
    14         register unsigned *op;
     14        register uint16_t *op;
    1515
    1616        while (*ip) {
     
    1818                op = obj + ((nc >> 1) * row) + (col >> 1);
    1919
    20                 *op = (*op & (unsigned)msk[col & 1]) |
     20                *op = (*op & (uint16_t)msk[col & 1]) |
    2121                      ((*ip++ & 0x00FF) << ((col & 1) ? 8 : 0));
    2222
Note: See TracChangeset for help on using the changeset viewer.