Changeset 7258c6a in buchla-68k for ram/vtyper.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/vtyper.c
r0292fbb r7258c6a 14 14 #include "midas.h" 15 15 16 extern u nsigned exp_c(unsignedc);17 18 extern short cxrate; /* data entry cursor x (col) update increment */19 extern short cyrate; /* data entry cursor y (row) update increment */20 extern short stccol; /* data entry text cursor column */21 extern short stcrow; /* data entry text cursor row */22 extern short vtccol; /* vtyper cursor column */23 extern short vtcrow; /* vtyper cursor row */24 extern short vtdecol; /* vtyper data entry column */25 extern short vtxval; /* vtyper cursor x value */26 extern short vtyval; /* vtyper cursor y value */27 28 extern char*vtdeptr; /* vtyper data entry pointer */29 30 extern charvtdechr; /* vtyper data entry character */31 32 extern charbfs[]; /* display string buffer */33 34 extern short vtwrow; /* vtyper window top row */35 extern short vtwcol; /* vtyper window left column */16 extern uint16_t exp_c(uint16_t c); 17 18 extern int16_t cxrate; /* data entry cursor x (col) update increment */ 19 extern int16_t cyrate; /* data entry cursor y (row) update increment */ 20 extern int16_t stccol; /* data entry text cursor column */ 21 extern int16_t stcrow; /* data entry text cursor row */ 22 extern int16_t vtccol; /* vtyper cursor column */ 23 extern int16_t vtcrow; /* vtyper cursor row */ 24 extern int16_t vtdecol; /* vtyper data entry column */ 25 extern int16_t vtxval; /* vtyper cursor x value */ 26 extern int16_t vtyval; /* vtyper cursor y value */ 27 28 extern int8_t *vtdeptr; /* vtyper data entry pointer */ 29 30 extern int8_t vtdechr; /* vtyper data entry character */ 31 32 extern int8_t bfs[]; /* display string buffer */ 33 34 extern int16_t vtwrow; /* vtyper window top row */ 35 extern int16_t vtwcol; /* vtyper window left column */ 36 36 37 37 extern void (*vt_adv)(void); … … 45 45 extern void (*vt_stop)(void); 46 46 /* vtyper exit function */ 47 extern void (*vt_dsp)(u nsigned *obj, unsigned fg, unsigned bg, short row, short col, char*buf);47 extern void (*vt_dsp)(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf); 48 48 /* vtyper display function */ 49 49 50 extern u nsigned*vtobj; /* vtyper display object pointer */51 extern u nsignedvtfgval; /* vtyper data foreground color */52 extern u nsignedvtbgval; /* vtyper data background color */50 extern uint16_t *vtobj; /* vtyper display object pointer */ 51 extern uint16_t vtfgval; /* vtyper data foreground color */ 52 extern uint16_t vtbgval; /* vtyper data background color */ 53 53 54 54 /* virtual typewriter display line constants */ 55 55 56 56 /* "123456789012345678901234567890" */ 57 charvtlin1[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ | "; /* top */58 charvtlin2[] = "abcdefghijklmnopqrstuvwxyz -*-"; /* center */59 charvtlin3[] = " 0123456789+-/#().,:;!?&<> | "; /* bottom */57 int8_t vtlin1[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ | "; /* top */ 58 int8_t vtlin2[] = "abcdefghijklmnopqrstuvwxyz -*-"; /* center */ 59 int8_t vtlin3[] = " 0123456789+-/#().,:;!?&<> | "; /* bottom */ 60 60 61 61 /* … … 85 85 */ 86 86 87 void vtsetup(u nsigned *obj, short (*dsp)(), short col, char *ptr, short tr, short tc, short (*adv)(), short (*bsp)(), short (*cup)(), short (*cdn)(), short (*stop)(), unsigned fg, unsignedbg)87 void vtsetup(uint16_t *obj, int16_t (*dsp)(), int16_t col, int8_t *ptr, int16_t tr, int16_t tc, int16_t (*adv)(), int16_t (*bsp)(), int16_t (*cup)(), int16_t (*cdn)(), int16_t (*stop)(), uint16_t fg, uint16_t bg) 88 88 { 89 89 vtobj = obj; /* setup object pointer */ … … 165 165 */ 166 166 167 void vtdisp(u nsigned *obj, unsigned fg, unsigned bg, short row, short col, char*buf)167 void vtdisp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf) 168 168 { 169 169 … … 187 187 */ 188 188 189 int vtyper(void)189 int16_t vtyper(void) 190 190 { 191 191 /* check for data entry */
Note:
See TracChangeset
for help on using the changeset viewer.