Changeset 26415
- Timestamp:
- Dec 15, 2009, 6:08:46 PM (16 years ago)
- Location:
- branches/eam_branches/20091201/Ohana/src/kapa2/src
- Files:
-
- 6 edited
-
EraseOverlay.c (modified) (1 diff)
-
LoadPicture.c (modified) (1 diff)
-
PNGit.c (modified) (1 diff)
-
PPMit.c (modified) (1 diff)
-
Resize.c (modified) (1 diff)
-
SaveOverlay.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/Ohana/src/kapa2/src/EraseOverlay.c
r14590 r26415 8 8 KapaImageWidget *image; 9 9 10 // We have to accept the incoming message even if we cannot perform the action 11 KiiScanCommand (sock, 16, "%*s %d", &N); 12 10 13 graphic = GetGraphic(); 11 14 section = GetActiveSection(); 12 15 image = section->image; 13 16 if (image == NULL) return (TRUE); 14 15 KiiScanCommand (sock, 16, "%*s %d", &N);16 17 17 18 if (N > NOVERLAYS) { -
branches/eam_branches/20091201/Ohana/src/kapa2/src/LoadPicture.c
r25757 r26415 73 73 if (status == 0) { /* No more pipe */ 74 74 fprintf (stderr, "error: pipe closed\n"); 75 fcntl (sock, F_SETFL, !O_NONBLOCK); 75 76 return (FALSE); 76 77 } -
branches/eam_branches/20091201/Ohana/src/kapa2/src/PNGit.c
r13479 r26415 16 16 17 17 /* expect a line telling the number of bytes and a filename */ 18 status = read (sock, filename, 16); 19 filename[16] = 0; 20 sscanf (filename, "%*s %d", &Nbytes); 21 status = read (sock, filename, Nbytes); 22 filename[status] = 0; /* make the string easy to parse */ 18 KiiScanMessage (sock, "%s", filename); 23 19 24 20 f = fopen (filename, "w"); -
branches/eam_branches/20091201/Ohana/src/kapa2/src/PPMit.c
r13479 r26415 13 13 14 14 /* expect a line telling the number of bytes and a filename */ 15 status = read (sock, filename, 16); 16 filename[16] = 0; 17 sscanf (filename, "%*s %d", &Nbytes); 18 status = read (sock, filename, Nbytes); 19 filename[status] = 0; /* make the string easy to parse */ 15 KiiScanMessage (sock, "%s", filename); 20 16 21 17 f = fopen (filename, "w"); -
branches/eam_branches/20091201/Ohana/src/kapa2/src/Resize.c
r21153 r26415 11 11 graphic = GetGraphic(); 12 12 13 // must scan the message before possible return 13 14 KiiScanMessage (sock, "%d %d", &NX, &NY); 14 15 -
branches/eam_branches/20091201/Ohana/src/kapa2/src/SaveOverlay.c
r13479 r26415 9 9 KapaImageWidget *image; 10 10 11 KiiScanMessage (sock, "%*s %d %s", &N, filename); 12 11 13 section = GetActiveSection(); 12 14 image = section->image; 13 15 if (image == NULL) return (TRUE); 14 16 15 KiiScanMessage (sock, "%*s %d %s", &N, filename);16 17 17 f = fopen (filename, "w"); 18 18 if (f == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
