Changeset 5637
- Timestamp:
- Nov 30, 2005, 11:56:41 AM (21 years ago)
- Location:
- trunk/Ohana/src/kii
- Files:
-
- 2 added
- 6 edited
-
event/CheckPipe.c (modified) (1 diff)
-
event/EventLoop.c (modified) (2 diffs)
-
include/prototypes.h (modified) (1 diff)
-
picture/JPEGit24.c (added)
-
setup/CloseDisplay.c (modified) (2 diffs)
-
setup/DefineLayout.c (modified) (1 diff)
-
setup/Ximage.c (modified) (1 diff)
-
setup/args.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kii/event/CheckPipe.c
r3464 r5637 101 101 102 102 if (!strcmp (buffer, "JPEG")) { 103 status = JPEGit (graphic, layout);103 status = JPEGit24 (graphic, layout); 104 104 write (layout[0].Ximage, "DONE", 4); 105 105 return (status); -
trunk/Ohana/src/kii/event/EventLoop.c
r3695 r5637 20 20 Display *display; 21 21 22 Refresh (graphic, layout, 1);22 if (USE_XWINDOW) Refresh (graphic, layout, 1); 23 23 24 24 status = TRUE; … … 28 28 return (FALSE); 29 29 30 if (!USE_XWINDOW) { 31 usleep (50000); 32 continue; 33 } 34 30 35 if (XEventsQueued (graphic[0].display, QueuedAfterFlush) < 1) { 31 36 usleep (10000); -
trunk/Ohana/src/kii/include/prototypes.h
r2466 r5637 6 6 int PSit (Graphic *graphic, Layout *layout, int Raw); 7 7 int JPEGit (Graphic *graphic, Layout *layout); 8 int JPEGit24 (Graphic *graphic, Layout *layout); 8 9 int Resize (Graphic *graphic, Layout *layout); 9 10 int Center (Graphic *graphic, Layout *layout); -
trunk/Ohana/src/kii/setup/CloseDisplay.c
r2466 r5637 2 2 3 3 /************** CloseDisplay *************/ 4 void 5 CloseDisplay (graphic) 6 Graphic *graphic;7 { 4 void CloseDisplay (Graphic *graphic) { 5 6 XFlush (graphic[0].display); 7 XFreeFont (graphic[0].display, graphic[0].font); 8 8 XFreeGC (graphic[0].display, graphic[0].gc); 9 9 XDestroySubwindows (graphic[0].display, graphic[0].window); … … 11 11 XFlush (graphic[0].display); 12 12 XCloseDisplay (graphic[0].display); 13 return; 13 14 } 14 15 -
trunk/Ohana/src/kii/setup/DefineLayout.c
r2466 r5637 6 6 struct sockaddr_un Address; 7 7 char temp[100]; 8 9 DEBUG = FALSE;10 if ((N = get_argument (argc, argv, "-debug"))) {11 remove_argument(N, &argc, argv);12 DEBUG = TRUE;13 }14 8 15 9 /** initiate connection with mana **/ -
trunk/Ohana/src/kii/setup/Ximage.c
r2466 r5637 6 6 Layout layout; 7 7 8 args (&argc, argv); 9 8 10 bzero (&graphic, sizeof(Graphic)); 9 11 bzero (&layout, sizeof(Layout)); 10 12 11 SetUpDisplay (&graphic, &argc, argv);12 SetUpWindow (&graphic, &argc, argv);13 if (USE_XWINDOW) SetUpDisplay (&graphic, &argc, argv); 14 if (USE_XWINDOW) SetUpWindow (&graphic, &argc, argv); 13 15 14 16 DefineLayout (&layout, &graphic, argc, argv); 15 17 EventLoop (&graphic, &layout); 16 18 17 XFlush (graphic.display); 18 XFreeFont (graphic.display, graphic.font); 19 CloseDisplay (&graphic); 19 if (USE_XWINDOW) CloseDisplay (&graphic); 20 20 exit (0); 21 21 }
Note:
See TracChangeset
for help on using the changeset viewer.
