Changeset 7a2cb0d in buchla-68k for ram/ttcpos.c


Ignore:
Timestamp:
11/12/2017 09:31:12 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6f0834c
Parents:
96496d0
Message:

Fixed ttcpos.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/ttcpos.c

    r96496d0 r7a2cb0d  
    1111#define CW_F    0xFFFF
    1212
    13 static int16_t ttcur[] = {
     13static uint16_t ttcur[] = {
    1414
    1515        CW_0, CW_0, CW_0, CW_0, /* 0 */
     
    3737*/
    3838
    39 void ttcini(uint16_t color)
     39void ttcini(int16_t color)
    4040{
    4141        if ((v_regs[5] & 0x0180) NE 0x0100)
     
    6969        op->objx = xcol;                /* update v_obtab entry */
    7070        op->objy = yrow;
    71         op->odtw1 = 0x0400 | (0x03FF & (xcol >> 1));
     71        op->odtw1 = (uint16_t)(0x0400 | (0x03FF & (xcol >> 1)));
    7272
    7373        SetPri(TTCURS, TTCPRI);         /* turn on the new location */
Note: See TracChangeset for help on using the changeset viewer.