91 |
|
COLOR col; |
92 |
|
int xmin, ymin, xmax, ymax; |
93 |
|
|
94 |
< |
fread((char *)col, sizeof(COLOR), 1, devin); |
94 |
> |
getbinary((char *)col, sizeof(COLOR), 1, devin); |
95 |
|
xmin = getw(devin); ymin = getw(devin); |
96 |
|
xmax = getw(devin); ymax = getw(devin); |
97 |
|
(*dev->paintr)(col, xmin, ymin, xmax, ymax); |
200 |
|
|
201 |
|
sendstate() /* send driver state variables */ |
202 |
|
{ |
203 |
< |
fwrite((char *)&dev->pixaspect, sizeof(dev->pixaspect), 1, devout); |
203 |
> |
putbinary(&dev->pixaspect, sizeof(dev->pixaspect), 1, devout); |
204 |
|
putw(dev->xsiz, devout); |
205 |
|
putw(dev->ysiz, devout); |
206 |
|
putw(dev->inpready, devout); |