Changeset 09d1345 in buchla-68k for vlib/vsetpal.c


Ignore:
Timestamp:
07/15/2017 10:03:02 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
bf89cfb
Parents:
6a37d5b
Message:

Prefer signed integers in vlib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlib/vsetpal.c

    r6a37d5b r09d1345  
    4343*/
    4444
    45 void vsetpal(uint16_t slot, uint16_t red, uint16_t grn, uint16_t blu)
     45void vsetpal(int16_t slot, int16_t red, int16_t grn, int16_t blu)
    4646{
    47         register uint16_t palval;
     47        register int16_t palval;
    4848        uint16_t *pal;
    4949
     
    5555                 ((blu & 1) << 3) | ((blu & 2) >> 1);
    5656
    57         *pal = palval ^ 0x003F;
     57        *pal = (uint16_t)palval ^ 0x003F;
    5858}
    5959
Note: See TracChangeset for help on using the changeset viewer.