Changeset 7258c6a in buchla-68k for vlib/vsetpal.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/vsetpal.c

    r0292fbb r7258c6a  
    66*/
    77
    8 #define PALETTE         ((unsigned *)0x280000L)
     8#define PALETTE         ((uint16_t *)0x280000L)
    99
    10 short   dfltpal[16][3] = {
     10int16_t dfltpal[16][3] = {
    1111
    1212/*       R  G  B          color */
     
    4545*/
    4646
    47 void vsetpal(unsigned slot, unsigned red, unsigned grn, unsigned blu)
     47void vsetpal(uint16_t slot, uint16_t red, uint16_t grn, uint16_t blu)
    4848{
    49         register unsigned palval;
    50         unsigned *pal;
     49        register uint16_t palval;
     50        uint16_t *pal;
    5151
    5252        pal = PALETTE;
     
    7979*/
    8080
    81 void vsndpal(short pp[16][3])
     81void vsndpal(int16_t pp[16][3])
    8282{
    83         register short i;
     83        register int16_t i;
    8484
    8585        for (i = 0; i < 16; i++)
Note: See TracChangeset for help on using the changeset viewer.