Changeset 7258c6a in buchla-68k for ram/gcurpos.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/gcurpos.c
r0292fbb r7258c6a 17 17 #define XOFF 14 /* x pixel offset */ 18 18 19 extern short sgcsw;19 extern int16_t sgcsw; 20 20 21 21 /* 4 bit pixel patterns */ … … 38 38 #define AW_F 0xFFFF 39 39 40 extern void objclr(u nsignedobj);41 extern void SetPri(int obj, int pri);42 extern void vbank(u nsignedb);43 44 extern u nsigned exp_c(unsignedc);45 46 extern short stcrow, stccol;47 48 /* 49 50 */ 51 52 static int ar_ule[] = { /* upper left even pixel arrow */40 extern void objclr(uint16_t obj); 41 extern void SetPri(int16_t obj, int16_t pri); 42 extern void vbank(uint16_t b); 43 44 extern uint16_t exp_c(uint16_t c); 45 46 extern int16_t stcrow, stccol; 47 48 /* 49 50 */ 51 52 static int16_t ar_ule[] = { /* upper left even pixel arrow */ 53 53 54 54 AW_F, AW_0, AW_0, AW_0, /* 0 */ … … 70 70 }; 71 71 72 static int ar_ulo[] = { /* upper left odd pixel arrow */72 static int16_t ar_ulo[] = { /* upper left odd pixel arrow */ 73 73 74 74 AW_7, AW_8, AW_0, AW_0, /* 0 */ … … 94 94 */ 95 95 96 static int ar_ure[] = { /* upper right even pixel arrow */96 static int16_t ar_ure[] = { /* upper right even pixel arrow */ 97 97 98 98 AW_0, AW_0, AW_1, AW_E, /* 0 */ … … 114 114 }; 115 115 116 static int ar_uro[] = { /* upper right odd pixel arrow */116 static int16_t ar_uro[] = { /* upper right odd pixel arrow */ 117 117 118 118 AW_0, AW_0, AW_0, AW_F, /* 0 */ … … 138 138 */ 139 139 140 static int ar_lle[] = { /* lower left even pixel arrow */140 static int16_t ar_lle[] = { /* lower left even pixel arrow */ 141 141 142 142 AW_0, AW_0, AW_0, AW_0, /* 0 */ … … 158 158 }; 159 159 160 static int ar_llo[] = { /* lower left odd pixel arrow */160 static int16_t ar_llo[] = { /* lower left odd pixel arrow */ 161 161 162 162 AW_0, AW_0, AW_0, AW_0, /* 0 */ … … 182 182 */ 183 183 184 static int ar_lre[] = { /* lower right even pixel arrow */184 static int16_t ar_lre[] = { /* lower right even pixel arrow */ 185 185 186 186 AW_0, AW_0, AW_0, AW_0, /* 0 */ … … 202 202 }; 203 203 204 static int ar_lro[] = { /* lower right odd pixel arrow */204 static int16_t ar_lro[] = { /* lower right odd pixel arrow */ 205 205 206 206 AW_0, AW_0, AW_0, AW_0, /* 0 */ … … 226 226 */ 227 227 228 static int *arrows[] = { /* arrow pointer table */228 static int16_t *arrows[] = { /* arrow pointer table */ 229 229 230 230 v_curs0, /* 0 - upper left, even pixel */ … … 253 253 */ 254 254 255 int gcurpos(int xloc, int yloc)256 { 257 register int ab, xo, yo;255 int16_t gcurpos(int16_t xloc, int16_t yloc) 256 { 257 register int16_t ab, xo, yo; 258 258 register struct octent *op; 259 259 … … 306 306 */ 307 307 308 void andcopy(u nsigned *to, unsigned *from, unsigned with, short len)309 { 310 register short i;308 void andcopy(uint16_t *to, uint16_t *from, uint16_t with, int16_t len) 309 { 310 register int16_t i; 311 311 312 312 for (i = len; i--; ) … … 320 320 */ 321 321 322 void arcurs(u nsignedicolor)323 { 324 register short color;322 void arcurs(uint16_t icolor) 323 { 324 register int16_t color; 325 325 326 326 color = exp_c(icolor);
Note:
See TracChangeset
for help on using the changeset viewer.