Changeset 2906
- Timestamp:
- Jan 5, 2005, 9:47:26 AM (22 years ago)
- Location:
- trunk/Ohana/src/kii
- Files:
-
- 4 edited
-
event/CheckPipe.c (modified) (2 diffs)
-
event/Reconfig.c (modified) (1 diff)
-
overlay/EraseOverlay.c (modified) (2 diffs)
-
picture/Center.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kii/event/CheckPipe.c
r2888 r2906 7 7 int CheckPipe (Graphic *graphic, Layout *layout) { 8 8 9 int status ;9 int status, c; 10 10 char buffer[20]; 11 11 12 /* attempt to read 4 bytes from stdin */ 12 13 bzero (buffer, 20); 13 14 /* attempt to read 4 bytes from stdin */15 14 status = read (layout[0].Ximage, buffer, 4); 15 buffer[4] = 0; 16 16 17 17 switch (status) { … … 42 42 return (2); 43 43 } 44 fprintf (stderr, "unknown signal %s\n", buffer);44 fprintf (stderr, "unknown signal (AC) %s\n", buffer); 45 45 return (TRUE); 46 46 } 47 47 48 /* If Active Cursor mode is off, we can receive other signal */ 48 49 if (!strcmp (buffer, "QUIT")) { 49 50 if (DEBUG) fprintf (stderr, "Goodbye!\n"); -
trunk/Ohana/src/kii/event/Reconfig.c
r2466 r2906 11 11 graphic[0].dy = MAX(event[0].xconfigure.height, MIN_HEIGHT); 12 12 13 XClearWindow (graphic[0].display, graphic[0].window); 13 14 PositionPictures (layout, graphic); 14 15 CreateColorbar (layout, graphic); -
trunk/Ohana/src/kii/overlay/EraseOverlay.c
r2466 r2906 6 6 int i, status, N; 7 7 8 fcntl (layout[0].Ximage, F_SETFL, !O_NONBLOCK); 8 9 status = read (layout[0].Ximage, buffer, 16); 9 10 buffer[16] = 0; … … 23 24 } 24 25 26 fcntl (layout[0].Ximage, F_SETFL, O_NONBLOCK); 25 27 Refresh (graphic, layout, 0); 26 28 return (TRUE); -
trunk/Ohana/src/kii/picture/Center.c
r2466 r2906 7 7 double X, Y; 8 8 9 fcntl (layout[0].Ximage, F_SETFL, !O_NONBLOCK); 9 10 status = read (layout[0].Ximage, buffer, 16); 10 11 buffer[16] = 0; … … 23 24 Refresh (graphic, layout, 0); 24 25 26 fcntl (layout[0].Ximage, F_SETFL, O_NONBLOCK); 25 27 XFlush (graphic[0].display); 26 28 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
