Changeset 13344 for branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Layout.c
- Timestamp:
- May 10, 2007, 5:24:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Layout.c
r13333 r13344 4 4 void InitLayout (int argc, char **argv) { 5 5 6 int N , UseGraph;6 int N; 7 7 Section *section; 8 8 9 UseGraph = FALSE; 10 if ((N = get_argument (argc, argv, "-image"))) { 11 remove_argument(N, &argc, argv); 12 UseGraph = FALSE; 13 } 14 15 /** initiate connection with server **/ 16 if (!FOREGROUND) { 17 if (argc < 2) { 18 fprintf (stderr, "socket path not specified\n"); 19 exit (0); 20 } 21 sock = KiiWait (argv[1]); 22 } 9 InitPipe(); 23 10 24 11 ACTIVE_CURSOR = FALSE; … … 37 24 } 38 25 26 /* move this out of here... */ 27 if (argc != 1) { 28 fprintf (stderr, "USAGE: kapa\n"); 29 exit (0); 30 } 31 39 32 InitRotFonts (); 40 33 41 /* create basic section */34 /* create basic section, empty of image or graph */ 42 35 section = AddSection ("default", 0.0, 0.0, 1.0, 1.0); 43 if (UseGraph) {44 section->graph = InitGraph ();45 SetGraphSize (section);46 } else {47 section->image = InitImage ();48 SetImageSize (section);49 }50 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
