Changeset f798356 in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 08:21:00 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
de91266
Parents:
f70aaad
Message:

Fixed gcurpos.c.

Location:
ram
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ram/gcurpos.c

    rf70aaad rf798356  
    247247        op->objy = yloc + yo;
    248248        op->obase = arrows[ab + (xloc & 0x0001)];
    249         op->odtw1 = 0x0400 | (0x03FF & (op->objx >> 1));
     249        op->odtw1 = (uint16_t)(0x0400 | (0x03FF & (op->objx >> 1)));
    250250
    251251        SetPri(GCURS, GCPRI);
     
    276276*/
    277277
    278 void arcurs(uint16_t icolor)
    279 {
    280         register int16_t color;
     278void arcurs(int16_t icolor)
     279{
     280        uint16_t color;
    281281
    282282        color = exp_c(icolor);
  • ram/gcurpos.x

    rf70aaad rf798356  
    1616
    1717extern  void            andcopy(volatile uint16_t *to, volatile uint16_t *from, uint16_t with, int16_t len);
    18 extern  void            arcurs(uint16_t icolor);
     18extern  void            arcurs(int16_t icolor);
    1919extern  int16_t         gcurpos(int16_t xloc, int16_t yloc);
    2020extern  void            sgcoff(void);
Note: See TracChangeset for help on using the changeset viewer.