Changeset bf89cfb in buchla-68k for vlib/vobjfns.c


Ignore:
Timestamp:
07/15/2017 11:15:58 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
c80943f
Parents:
09d1345
Message:

No more warnings in vlib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlib/vobjfns.c

    r09d1345 rbf89cfb  
    66
    77        SelObj(obj)
    8         int obj;
    98
    109                Select 'obj' as the current working object.
    1110
    1211        SetPri(obj, pri)
    13         int obj, pri;
    1412
    1513                Display object 'obj' with priority 'pri'.
    1614
    1715        SetObj(obj, type, bank, base, xpix, ypix, x0, y0, flags, pri)
    18         int obj, type, bank, xpix, ypix, x0, y0, flags, pri;
    19         unsigned int *base;
    2016
    2117                Setup object 'obj' of type 'type' at 'base' in bank 'bank'
     
    2723
    2824        CpyObj(from, to, w, h, sw)
    29         unsigned int *from, *to;
    30         int w, h, sw;
    3125
    3226                Copy a 'w'-word by 'h'-line object from 'from' to 'to' with
     
    5145#include "ram.h"
    5246
     47typedef         void    (**intvec)(void);
     48
    5349int16_t         wsize;          /* object width calculated by SetObj() */
    5450int16_t         vi_dis;         /* disable use of VIint */
     
    9692
    9793        op = &v_obtab[obj];             /* point at the object table */
    98         op->opri = pri;                 /* set the priority */
     94        op->opri = (int8_t)pri;         /* set the priority */
    9995
    10096        v_odtab[pri][0] = op->odtw0 | V_BLA;    /* start object as blanked */
    10197        v_odtab[pri][1] = op->odtw1;
    102         v_odtab[pri][2] = ((int32_t)op->obase >> 1) & 0xFFFF;
     98        v_odtab[pri][2] = (uint16_t)(((int32_t)op->obase >> 1) & 0xFFFF);
    10399
    104100        objon(pri, op->objy, op->ysize);        /* enable access table bits */
     
    111107        vi_ctl |= (1u << pri);                  /* set unblank bit */
    112108
    113         if (*((int32_t *)0x000064) NE &VIint)   /* make sure VI vector is set */
     109        if (*(intvec)0x000064 NE &VIint)        /* make sure VI vector is set */
    114110                BIOS(B_SETV, 25, VIint);
    115111
     
    142138        op->objy = y0;
    143139        op->obase = base;
    144         op->opri = pri;
     140        op->opri = (int8_t)pri;
    145141        op->obank = bank & 3;
    146142
Note: See TracChangeset for help on using the changeset viewer.