Changeset 16010
- Timestamp:
- Jan 6, 2008, 1:41:02 PM (18 years ago)
- Location:
- trunk/Ohana/src/libkapa
- Files:
-
- 2 edited
-
include/kapa.h (modified) (1 diff)
-
src/KiiPicture.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libkapa/include/kapa.h
r15620 r16010 124 124 125 125 /* KiiPicture.c */ 126 int KiiSetChannel (int fd, int channel); 127 int KiiSetColormap (int fd, char *colormap); 126 128 int KiiNewPicture1D (int fd, KiiImage *image, KapaImageData *data, Coords *coords); 127 129 int KiiNewPicture2D (int fd, KiiImage *image, KapaImageData *data, Coords *coords); -
trunk/Ohana/src/libkapa/src/KiiPicture.c
r14590 r16010 1 1 # include <kapa_internal.h> 2 3 int KiiSetChannel (int fd, int channel) { 4 5 KiiSendCommand (fd, 4, "CHAN"); /* tell kapa to look for the incoming image */ 6 KiiSendMessage (fd, "%1d", channel); 7 8 KiiWaitAnswer (fd, "DONE"); 9 return (TRUE); 10 } 11 12 int KiiSetColormap (int fd, char *colormap) { 13 14 KiiSendCommand (fd, 4, "CMAP"); /* tell kapa to look for the incoming image */ 15 KiiSendMessage (fd, "%s", colormap); 16 17 KiiWaitAnswer (fd, "DONE"); 18 return (TRUE); 19 } 2 20 3 21 int KiiNewPicture1D (int fd, KiiImage *image, KapaImageData *data, Coords *coords) {
Note:
See TracChangeset
for help on using the changeset viewer.
