Changeset 0ca44a2 in buchla-68k


Ignore:
Timestamp:
11/12/2017 09:42:08 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
9e37759
Parents:
3577fe1
Message:

Fixed itcpos.c.

Location:
ram
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ram/itcpos.c

    r3577fe1 r0ca44a2  
    1111#define CW_F    0xFFFF
    1212
    13 static int16_t itcur[] = {
     13static uint16_t itcur[] = {
    1414
    1515        CW_0, CW_0, CW_0, CW_0, /* 0 */
     
    3737*/
    3838
    39 void itcini(uint16_t color)
     39void itcini(int16_t color)
    4040{
    4141        if ((v_regs[5] & 0x0180) NE 0x0100)
     
    7070        op->objy = yrow;
    7171        op->obase = &v_cur[0];
    72         op->odtw1 = 0x0400 | (0x03FF & (xcol >> 1));
     72        op->odtw1 = (uint16_t)(0x0400 | (0x03FF & (xcol >> 1)));
    7373
    7474        SetPri(TCURS, TCPRI);           /* turn on the new location */
  • ram/itcpos.x

    r3577fe1 r0ca44a2  
    1717extern  void            advicur(void);
    1818extern  void            bspicur(void);
    19 extern  void            itcini(uint16_t color);
     19extern  void            itcini(int16_t color);
    2020extern  void            itcpos(int16_t row, int16_t col);
Note: See TracChangeset for help on using the changeset viewer.