home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume15 / gbench / part02 < prev    next >
SHell self-extracting ARchive  |  1988-06-12  |  30.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 35 69 30 36 |Subject:| v15i06|
|00000010| 39 3a 20 20 47 72 61 70 | 68 69 63 73 20 62 65 6e |9: Grap|hics ben|
|00000020| 63 68 6d 61 72 6b 20 74 | 6f 6f 6c 6b 69 74 20 66 |chmark t|oolkit f|
|00000030| 6f 72 20 58 2c 20 50 61 | 72 74 30 32 2f 30 32 0a |or X, Pa|rt02/02.|
|00000040| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000050| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 53 65 |.sources|.unix.Se|
|00000060| 6e 64 65 72 3a 20 73 6f | 75 72 63 65 73 0a 41 70 |nder: so|urces.Ap|
|00000070| 70 72 6f 76 65 64 3a 20 | 72 73 61 6c 7a 40 75 75 |proved: |rsalz@uu|
|00000080| 6e 65 74 2e 55 55 2e 4e | 45 54 0a 0a 53 75 62 6d |net.UU.N|ET..Subm|
|00000090| 69 74 74 65 64 2d 62 79 | 3a 20 43 72 61 69 67 20 |itted-by|: Craig |
|000000a0| 44 75 6e 77 6f 6f 64 79 | 20 3c 64 75 6e 77 6f 6f |Dunwoody| <dunwoo|
|000000b0| 64 79 40 6c 75 72 63 68 | 2e 73 74 61 6e 66 6f 72 |dy@lurch|.stanfor|
|000000c0| 64 2e 65 64 75 3e 0a 50 | 6f 73 74 69 6e 67 2d 6e |d.edu>.P|osting-n|
|000000d0| 75 6d 62 65 72 3a 20 56 | 6f 6c 75 6d 65 20 31 35 |umber: V|olume 15|
|000000e0| 2c 20 49 73 73 75 65 20 | 36 39 0a 41 72 63 68 69 |, Issue |69.Archi|
|000000f0| 76 65 2d 6e 61 6d 65 3a | 20 67 62 65 6e 63 68 2f |ve-name:| gbench/|
|00000100| 70 61 72 74 30 32 0a 0a | 23 21 20 2f 62 69 6e 2f |part02..|#! /bin/|
|00000110| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|00000120| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|00000130| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|00000140| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|00000150| 20 74 68 65 6e 20 75 6e | 70 61 63 6b 0a 23 20 69 | then un|pack.# i|
|00000160| 74 20 62 79 20 73 61 76 | 69 6e 67 20 69 74 20 69 |t by sav|ing it i|
|00000170| 6e 74 6f 20 61 20 66 69 | 6c 65 20 61 6e 64 20 74 |nto a fi|le and t|
|00000180| 79 70 69 6e 67 20 22 73 | 68 20 66 69 6c 65 22 2e |yping "s|h file".|
|00000190| 20 20 54 6f 20 6f 76 65 | 72 77 72 69 74 65 20 65 | To ove|rwrite e|
|000001a0| 78 69 73 74 69 6e 67 0a | 23 20 66 69 6c 65 73 2c |xisting.|# files,|
|000001b0| 20 74 79 70 65 20 22 73 | 68 20 66 69 6c 65 20 2d | type "s|h file -|
|000001c0| 63 22 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |c". You| can als|
|000001d0| 6f 20 66 65 65 64 20 74 | 68 69 73 20 61 73 20 73 |o feed t|his as s|
|000001e0| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 76 69 |tandard |input vi|
|000001f0| 61 0a 23 20 75 6e 73 68 | 61 72 2c 20 6f 72 20 62 |a.# unsh|ar, or b|
|00000200| 79 20 74 79 70 69 6e 67 | 20 22 73 68 20 3c 66 69 |y typing| "sh <fi|
|00000210| 6c 65 22 2c 20 65 2e 67 | 2e 2e 20 20 49 66 20 74 |le", e.g|.. If t|
|00000220| 68 69 73 20 61 72 63 68 | 69 76 65 20 69 73 20 63 |his arch|ive is c|
|00000230| 6f 6d 70 6c 65 74 65 2c | 20 79 6f 75 0a 23 20 77 |omplete,| you.# w|
|00000240| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|00000250| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|00000260| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|00000270| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 32 20 28 |d of arc|hive 2 (|
|00000280| 6f 66 20 32 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 2).".|# Conten|
|00000290| 74 73 3a 20 20 67 62 65 | 6e 63 68 2e 6d 61 6e 20 |ts: gbe|nch.man |
|000002a0| 6f 70 73 2e 63 0a 23 20 | 57 72 61 70 70 65 64 20 |ops.c.# |Wrapped |
|000002b0| 62 79 20 72 73 61 6c 7a | 40 66 69 67 2e 62 62 6e |by rsalz|@fig.bbn|
|000002c0| 2e 63 6f 6d 20 6f 6e 20 | 4d 6f 6e 20 4a 75 6e 20 |.com on |Mon Jun |
|000002d0| 31 33 20 31 35 3a 33 32 | 3a 35 32 20 31 39 38 38 |13 15:32|:52 1988|
|000002e0| 0a 50 41 54 48 3d 2f 62 | 69 6e 3a 2f 75 73 72 2f |.PATH=/b|in:/usr/|
|000002f0| 62 69 6e 3a 2f 75 73 72 | 2f 75 63 62 20 3b 20 65 |bin:/usr|/ucb ; e|
|00000300| 78 70 6f 72 74 20 50 41 | 54 48 0a 69 66 20 74 65 |xport PA|TH.if te|
|00000310| 73 74 20 2d 66 20 27 67 | 62 65 6e 63 68 2e 6d 61 |st -f 'g|bench.ma|
|00000320| 6e 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |n' -a "$|{1}" != |
|00000330| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000340| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000350| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000360| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 67 62 65 6e |ing file| \"'gben|
|00000370| 63 68 2e 6d 61 6e 27 5c | 22 0a 65 6c 73 65 0a 65 |ch.man'\|".else.e|
|00000380| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000390| 74 69 6e 67 20 5c 22 27 | 67 62 65 6e 63 68 2e 6d |ting \"'|gbench.m|
|000003a0| 61 6e 27 5c 22 20 5c 28 | 31 37 38 33 35 20 63 68 |an'\" \(|17835 ch|
|000003b0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000003c0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 67 62 65 6e 63 68 |s/^X//" |>'gbench|
|000003d0| 2e 6d 61 6e 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |.man' <<|'END_OF_|
|000003e0| 46 49 4c 45 27 0a 58 2e | 54 48 20 47 42 45 4e 43 |FILE'.X.|TH GBENC|
|000003f0| 48 20 31 20 22 31 20 4d | 61 72 63 68 20 31 39 38 |H 1 "1 M|arch 198|
|00000400| 38 22 20 22 49 6e 74 65 | 72 56 69 65 77 73 22 20 |8" "Inte|rViews" |
|00000410| 22 49 6e 74 65 72 56 69 | 65 77 73 20 52 65 66 65 |"InterVi|ews Refe|
|00000420| 72 65 6e 63 65 20 4d 61 | 6e 75 61 6c 22 0a 58 2e |rence Ma|nual".X.|
|00000430| 53 48 20 4e 41 4d 45 0a | 58 67 62 65 6e 63 68 20 |SH NAME.|Xgbench |
|00000440| 5c 2d 20 67 72 61 70 68 | 69 63 73 20 62 65 6e 63 |\- graph|ics benc|
|00000450| 68 6d 61 72 6b 0a 58 2e | 53 48 20 53 59 4e 4f 50 |hmark.X.|SH SYNOP|
|00000460| 53 49 53 0a 58 5c 66 42 | 67 62 65 6e 63 68 5c 66 |SIS.X\fB|gbench\f|
|00000470| 50 20 5b 2d 5c 66 49 63 | 6f 6d 6d 61 6e 64 6e 61 |P [-\fIc|ommandna|
|00000480| 6d 65 5c 66 50 20 5b 5c | 66 49 70 61 72 61 6d 65 |me\fP [\|fIparame|
|00000490| 74 65 72 73 5c 66 50 5d | 5d 2a 0a 58 2e 53 48 20 |ters\fP]|]*.X.SH |
|000004a0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 5c 66 49 |DESCRIPT|ION.X\fI|
|000004b0| 67 62 65 6e 63 68 5c 66 | 50 20 69 73 20 61 20 67 |gbench\f|P is a g|
|000004c0| 72 61 70 68 69 63 73 20 | 62 65 6e 63 68 6d 61 72 |raphics |benchmar|
|000004d0| 6b 20 74 6f 6f 6c 2e 20 | 20 49 74 20 63 75 72 72 |k tool. | It curr|
|000004e0| 65 6e 74 6c 79 20 73 75 | 70 70 6f 72 74 73 20 32 |ently su|pports 2|
|000004f0| 44 0a 58 69 6d 6d 65 64 | 69 61 74 65 2d 6d 6f 64 |D.Ximmed|iate-mod|
|00000500| 65 20 67 72 61 70 68 69 | 63 73 20 61 6e 64 20 72 |e graphi|cs and r|
|00000510| 75 6e 73 20 6f 6e 20 74 | 6f 70 20 6f 66 20 74 68 |uns on t|op of th|
|00000520| 65 20 58 20 57 69 6e 64 | 6f 77 20 53 79 73 74 65 |e X Wind|ow Syste|
|00000530| 6d 2c 20 62 6f 74 68 20 | 56 65 72 73 69 6f 6e 20 |m, both |Version |
|00000540| 31 30 0a 58 61 6e 64 20 | 56 65 72 73 69 6f 6e 20 |10.Xand |Version |
|00000550| 31 31 2e 20 20 49 74 20 | 69 73 20 77 72 69 74 74 |11. It |is writt|
|00000560| 65 6e 20 69 6e 20 43 20 | 61 6e 64 20 69 74 20 64 |en in C |and it d|
|00000570| 69 72 65 63 74 6c 79 20 | 63 61 6c 6c 73 20 74 68 |irectly |calls th|
|00000580| 65 20 6c 6f 77 2d 6c 65 | 76 65 6c 20 77 69 6e 64 |e low-le|vel wind|
|00000590| 6f 77 0a 58 73 79 73 74 | 65 6d 20 63 6c 69 65 6e |ow.Xsyst|em clien|
|000005a0| 74 20 6c 69 62 72 61 72 | 79 3b 20 6e 6f 20 74 6f |t librar|y; no to|
|000005b0| 6f 6c 6b 69 74 20 69 73 | 20 75 73 65 64 2e 0a 58 |olkit is| used..X|
|000005c0| 2e 50 50 0a 58 57 68 65 | 6e 20 5c 66 49 67 62 65 |.PP.XWhe|n \fIgbe|
|000005d0| 6e 63 68 5c 66 50 20 73 | 74 61 72 74 73 2c 20 69 |nch\fP s|tarts, i|
|000005e0| 74 20 63 72 65 61 74 65 | 73 20 61 20 77 69 6e 64 |t create|s a wind|
|000005f0| 6f 77 20 61 6e 64 20 62 | 65 67 69 6e 73 20 70 72 |ow and b|egins pr|
|00000600| 6f 63 65 73 73 69 6e 67 | 0a 58 63 6f 6d 6d 61 6e |ocessing|.Xcomman|
|00000610| 64 73 2e 20 20 59 6f 75 | 20 6d 61 79 20 73 75 70 |ds. You| may sup|
|00000620| 70 6c 79 20 61 6e 79 20 | 6e 75 6d 62 65 72 20 6f |ply any |number o|
|00000630| 66 20 63 6f 6d 6d 61 6e | 64 73 20 61 73 20 61 72 |f comman|ds as ar|
|00000640| 67 75 6d 65 6e 74 73 20 | 74 6f 20 74 68 65 0a 58 |guments |to the.X|
|00000650| 70 72 6f 67 72 61 6d 2e | 20 20 4f 6e 63 65 20 74 |program.| Once t|
|00000660| 68 65 73 65 20 63 6f 6d | 6d 61 6e 64 73 20 68 61 |hese com|mands ha|
|00000670| 76 65 20 62 65 65 6e 20 | 70 72 6f 63 65 73 73 65 |ve been |processe|
|00000680| 64 2c 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |d, comma|nds are |
|00000690| 72 65 61 64 20 66 72 6f | 6d 0a 58 73 74 61 6e 64 |read fro|m.Xstand|
|000006a0| 61 72 64 20 69 6e 70 75 | 74 2c 20 6f 6e 65 20 70 |ard inpu|t, one p|
|000006b0| 65 72 20 6c 69 6e 65 2e | 20 20 45 61 63 68 20 63 |er line.| Each c|
|000006c0| 6f 6d 6d 61 6e 64 20 64 | 69 72 65 63 74 73 20 5c |ommand d|irects \|
|000006d0| 66 49 67 62 65 6e 63 68 | 5c 66 50 20 74 6f 0a 58 |fIgbench|\fP to.X|
|000006e0| 72 65 70 65 61 74 65 64 | 6c 79 20 70 65 72 66 6f |repeated|ly perfo|
|000006f0| 72 6d 20 61 20 70 61 72 | 74 69 63 75 6c 61 72 20 |rm a par|ticular |
|00000700| 64 72 61 77 69 6e 67 20 | 6f 70 65 72 61 74 69 6f |drawing |operatio|
|00000710| 6e 2e 20 20 5c 66 49 67 | 62 65 6e 63 68 5c 66 50 |n. \fIg|bench\fP|
|00000720| 20 63 6f 70 69 65 73 20 | 74 68 65 0a 58 63 6f 6d | copies |the.Xcom|
|00000730| 6d 61 6e 64 20 74 6f 20 | 74 68 65 20 6f 75 74 66 |mand to |the outf|
|00000740| 69 6c 65 20 28 64 65 66 | 61 75 6c 74 3a 20 20 73 |ile (def|ault: s|
|00000750| 74 61 6e 64 61 72 64 20 | 6f 75 74 70 75 74 29 2c |tandard |output),|
|00000760| 20 65 78 65 63 75 74 65 | 73 20 74 68 65 20 63 6f | execute|s the co|
|00000770| 6d 6d 61 6e 64 2c 0a 58 | 61 6e 64 20 70 72 69 6e |mmand,.X|and prin|
|00000780| 74 73 20 6f 6e 20 74 68 | 65 20 6f 75 74 66 69 6c |ts on th|e outfil|
|00000790| 65 20 74 68 65 20 68 6f | 73 74 20 6c 6f 61 64 20 |e the ho|st load |
|000007a0| 61 76 65 72 61 67 65 2c | 20 74 68 65 20 74 69 6d |average,| the tim|
|000007b0| 65 20 66 6f 72 20 65 61 | 63 68 0a 58 69 74 65 72 |e for ea|ch.Xiter|
|000007c0| 61 74 69 6f 6e 2c 20 61 | 6e 64 20 74 68 65 20 6e |ation, a|nd the n|
|000007d0| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 72 61 74 69 |umber of| iterati|
|000007e0| 6f 6e 73 20 70 65 72 20 | 73 65 63 6f 6e 64 2e 0a |ons per |second..|
|000007f0| 58 2e 50 50 0a 58 41 6c | 6c 20 74 69 6d 65 73 20 |X.PP.XAl|l times |
|00000800| 61 72 65 20 6d 65 61 73 | 75 72 65 64 20 69 6e 20 |are meas|ured in |
|00000810| 72 65 61 6c 20 28 77 61 | 6c 6c 2d 63 6c 6f 63 6b |real (wa|ll-clock|
|00000820| 29 20 74 69 6d 65 2e 20 | 20 59 6f 75 20 73 68 6f |) time. | You sho|
|00000830| 75 6c 64 20 65 73 74 61 | 62 6c 69 73 68 20 74 68 |uld esta|blish th|
|00000840| 61 74 0a 58 74 68 65 20 | 68 6f 73 74 28 73 29 20 |at.Xthe |host(s) |
|00000850| 61 6e 64 20 6e 65 74 77 | 6f 72 6b 20 28 69 66 20 |and netw|ork (if |
|00000860| 75 73 65 64 29 20 61 72 | 65 20 75 6e 6c 6f 61 64 |used) ar|e unload|
|00000870| 65 64 20 73 6f 20 74 68 | 61 74 20 76 61 6c 69 64 |ed so th|at valid|
|00000880| 20 6e 75 6d 62 65 72 73 | 20 6d 61 79 20 62 65 0a | numbers| may be.|
|00000890| 58 6f 62 74 61 69 6e 65 | 64 2e 0a 58 2e 50 50 0a |Xobtaine|d..X.PP.|
|000008a0| 58 57 68 65 6e 20 5c 66 | 49 67 62 65 6e 63 68 5c |XWhen \f|Igbench\|
|000008b0| 66 50 20 70 65 72 66 6f | 72 6d 73 20 61 20 73 65 |fP perfo|rms a se|
|000008c0| 71 75 65 6e 63 65 20 6f | 66 20 64 72 61 77 69 6e |quence o|f drawin|
|000008d0| 67 20 6f 70 65 72 61 74 | 69 6f 6e 73 2c 20 65 61 |g operat|ions, ea|
|000008e0| 63 68 20 6f 70 65 72 61 | 74 69 6f 6e 0a 58 69 73 |ch opera|tion.Xis|
|000008f0| 20 73 68 69 66 74 65 64 | 20 62 79 20 6f 6e 65 20 | shifted| by one |
|00000900| 70 69 78 65 6c 20 69 6e | 20 78 20 61 6e 64 20 79 |pixel in| x and y|
|00000910| 20 66 72 6f 6d 20 74 68 | 65 20 70 72 65 76 69 6f | from th|e previo|
|00000920| 75 73 20 6f 6e 65 2e 20 | 20 54 68 69 73 20 73 68 |us one. | This sh|
|00000930| 69 66 74 69 6e 67 0a 58 | 67 6f 65 73 20 62 61 63 |ifting.X|goes bac|
|00000940| 6b 20 61 6e 64 20 66 6f | 72 74 68 20 6f 76 65 72 |k and fo|rth over|
|00000950| 20 61 20 75 73 65 72 2d | 64 65 66 69 6e 61 62 6c | a user-|definabl|
|00000960| 65 20 72 61 6e 67 65 20 | 28 64 65 66 61 75 6c 74 |e range |(default|
|00000970| 3a 20 33 32 20 70 69 78 | 65 6c 73 29 2c 20 74 68 |: 32 pix|els), th|
|00000980| 65 0a 58 69 6e 74 65 6e | 74 20 62 65 69 6e 67 20 |e.Xinten|t being |
|00000990| 74 6f 20 61 76 65 72 61 | 67 65 20 6f 75 74 20 74 |to avera|ge out t|
|000009a0| 68 65 20 65 66 66 65 63 | 74 73 20 6f 66 20 70 69 |he effec|ts of pi|
|000009b0| 78 65 6c 20 61 6c 69 67 | 6e 6d 65 6e 74 20 69 6e |xel alig|nment in|
|000009c0| 20 74 68 65 20 66 72 61 | 6d 65 0a 58 62 75 66 66 | the fra|me.Xbuff|
|000009d0| 65 72 2e 20 20 50 69 78 | 65 6c 20 61 6c 69 67 6e |er. Pix|el align|
|000009e0| 6d 65 6e 74 20 63 61 6e | 20 61 66 66 65 63 74 20 |ment can| affect |
|000009f0| 74 68 65 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 |the perf|ormance |
|00000a00| 6f 66 20 6d 61 6e 79 20 | 67 72 61 70 68 69 63 73 |of many |graphics|
|00000a10| 0a 58 73 79 73 74 65 6d | 73 2c 20 62 6f 74 68 20 |.Xsystem|s, both |
|00000a20| 6c 6f 77 2d 65 6e 64 20 | 6d 65 6d 6f 72 79 2d 6d |low-end |memory-m|
|00000a30| 61 70 70 65 64 20 66 72 | 61 6d 65 20 62 75 66 66 |apped fr|ame buff|
|00000a40| 65 72 73 20 61 6e 64 20 | 68 69 67 68 2d 65 6e 64 |ers and |high-end|
|00000a50| 20 73 79 73 74 65 6d 73 | 20 77 69 74 68 0a 58 69 | systems| with.Xi|
|00000a60| 6e 74 65 72 6c 65 61 76 | 65 64 20 70 69 78 65 6c |nterleav|ed pixel|
|00000a70| 20 70 72 6f 63 65 73 73 | 6f 72 73 2e 0a 58 2e 50 | process|ors..X.P|
|00000a80| 50 0a 58 59 6f 75 20 63 | 61 6e 20 75 73 65 20 5c |P.XYou c|an use \|
|00000a90| 66 49 67 62 65 6e 63 68 | 5c 66 50 20 65 69 74 68 |fIgbench|\fP eith|
|00000aa0| 65 72 20 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |er inter|actively|
|00000ab0| 2c 20 62 79 20 74 79 70 | 69 6e 67 0a 58 63 6f 6d |, by typ|ing.Xcom|
|00000ac0| 6d 61 6e 64 73 20 61 6e | 64 20 76 69 65 77 69 6e |mands an|d viewin|
|00000ad0| 67 20 74 68 65 20 72 65 | 73 75 6c 74 73 20 69 6d |g the re|sults im|
|00000ae0| 6d 65 64 69 61 74 65 6c | 79 2c 20 6f 72 20 69 6e |mediatel|y, or in|
|00000af0| 20 62 61 74 63 68 20 6d | 6f 64 65 2c 0a 58 77 69 | batch m|ode,.Xwi|
|00000b00| 74 68 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |th stand|ard inpu|
|00000b10| 74 20 72 65 64 69 72 65 | 63 74 65 64 20 74 6f 20 |t redire|cted to |
|00000b20| 61 20 73 63 72 69 70 74 | 20 66 69 6c 65 20 61 6e |a script| file an|
|00000b30| 64 20 6f 75 74 70 75 74 | 0a 58 72 65 64 69 72 65 |d output|.Xredire|
|00000b40| 63 74 65 64 20 74 6f 20 | 61 20 6c 6f 67 20 66 69 |cted to |a log fi|
|00000b50| 6c 65 2e 20 20 54 6f 20 | 61 76 6f 69 64 20 63 6c |le. To |avoid cl|
|00000b60| 75 74 74 65 72 69 6e 67 | 20 75 70 20 74 68 65 20 |uttering| up the |
|00000b70| 6c 6f 67 20 77 68 65 6e | 0a 58 6f 75 74 70 75 74 |log when|.Xoutput|
|00000b80| 20 69 73 20 72 65 64 69 | 72 65 63 74 65 64 20 74 | is redi|rected t|
|00000b90| 6f 20 61 20 66 69 6c 65 | 2c 20 63 65 72 74 61 69 |o a file|, certai|
|00000ba0| 6e 20 6f 75 74 70 75 74 | 73 20 74 68 61 74 20 61 |n output|s that a|
|00000bb0| 72 65 20 6f 6e 6c 79 20 | 75 73 65 66 75 6c 20 69 |re only |useful i|
|00000bc0| 6e 0a 58 69 6e 74 65 72 | 61 63 74 69 76 65 20 75 |n.Xinter|active u|
|00000bd0| 73 65 20 61 72 65 20 64 | 69 72 65 63 74 65 64 20 |se are d|irected |
|00000be0| 74 6f 20 73 74 61 6e 64 | 61 72 64 20 65 72 72 6f |to stand|ard erro|
|00000bf0| 72 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 74 68 |r rather| than th|
|00000c00| 65 20 6f 75 74 66 69 6c | 65 2e 0a 58 2e 50 50 0a |e outfil|e..X.PP.|
|00000c10| 58 5c 66 42 43 6f 6d 6d | 61 6e 64 73 5c 66 50 0a |X\fBComm|ands\fP.|
|00000c20| 58 2e 50 50 0a 58 45 61 | 63 68 20 63 6f 6d 6d 61 |X.PP.XEa|ch comma|
|00000c30| 6e 64 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 61 |nd consi|sts of a|
|00000c40| 20 63 6f 6d 6d 61 6e 64 | 20 6e 61 6d 65 20 66 6f | command| name fo|
|00000c50| 6c 6c 6f 77 65 64 20 62 | 79 20 7a 65 72 6f 20 6f |llowed b|y zero o|
|00000c60| 72 20 6d 6f 72 65 20 6f | 70 74 69 6f 6e 61 6c 0a |r more o|ptional.|
|00000c70| 58 70 61 72 61 6d 65 74 | 65 72 73 20 73 65 70 61 |Xparamet|ers sepa|
|00000c80| 72 61 74 65 64 20 62 79 | 20 77 68 69 74 65 20 73 |rated by| white s|
|00000c90| 70 61 63 65 2e 20 20 59 | 6f 75 20 6d 61 79 20 61 |pace. Y|ou may a|
|00000ca0| 62 62 72 65 76 69 61 74 | 65 20 63 6f 6d 6d 61 6e |bbreviat|e comman|
|00000cb0| 64 20 6e 61 6d 65 73 20 | 74 6f 0a 58 74 68 65 69 |d names |to.Xthei|
|00000cc0| 72 20 73 6d 61 6c 6c 65 | 73 74 20 75 6e 69 71 75 |r smalle|st uniqu|
|00000cd0| 65 20 70 72 65 66 69 78 | 2e 20 20 41 6d 62 69 67 |e prefix|. Ambig|
|00000ce0| 75 6f 75 73 20 63 6f 6d | 6d 61 6e 64 20 6e 61 6d |uous com|mand nam|
|00000cf0| 65 73 20 61 72 65 20 72 | 65 73 6f 6c 76 65 64 20 |es are r|esolved |
|00000d00| 74 6f 20 74 68 65 0a 58 | 66 69 72 73 74 20 6d 61 |to the.X|first ma|
|00000d10| 74 63 68 69 6e 67 20 6e | 61 6d 65 2e 20 20 41 6e |tching n|ame. An|
|00000d20| 79 20 63 6f 6d 6d 61 6e | 64 20 6e 61 6d 65 20 6d |y comman|d name m|
|00000d30| 61 79 20 62 65 20 70 72 | 65 66 69 78 65 64 20 77 |ay be pr|efixed w|
|00000d40| 69 74 68 20 74 68 65 20 | 40 20 63 68 61 72 61 63 |ith the |@ charac|
|00000d50| 74 65 72 2c 0a 58 77 68 | 69 63 68 20 66 6f 72 63 |ter,.Xwh|ich forc|
|00000d60| 65 73 20 61 6c 6c 20 6f | 75 74 70 75 74 20 66 72 |es all o|utput fr|
|00000d70| 6f 6d 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 74 |om the c|ommand t|
|00000d80| 6f 20 73 74 61 6e 64 61 | 72 64 20 65 72 72 6f 72 |o standa|rd error|
|00000d90| 20 72 61 74 68 65 72 20 | 74 68 61 6e 0a 58 74 68 | rather |than.Xth|
|00000da0| 65 20 6f 75 74 66 69 6c | 65 2e 20 20 54 68 69 73 |e outfil|e. This|
|00000db0| 20 69 73 20 75 73 65 66 | 75 6c 20 66 6f 72 20 70 | is usef|ul for p|
|00000dc0| 72 65 76 65 6e 74 69 6e | 67 20 73 65 6c 65 63 74 |reventin|g select|
|00000dd0| 65 64 20 63 6f 6d 6d 61 | 6e 64 73 20 66 72 6f 6d |ed comma|nds from|
|00000de0| 0a 58 67 6f 69 6e 67 20 | 69 6e 74 6f 20 61 20 6c |.Xgoing |into a l|
|00000df0| 6f 67 20 66 69 6c 65 2e | 0a 58 2e 50 50 0a 58 54 |og file.|.X.PP.XT|
|00000e00| 68 65 20 6f 70 74 69 6f | 6e 61 6c 20 70 61 72 61 |he optio|nal para|
|00000e10| 6d 65 74 65 72 73 20 63 | 6f 6e 73 69 73 74 20 6f |meters c|onsist o|
|00000e20| 66 20 7a 65 72 6f 20 6f | 72 20 6d 6f 72 65 20 70 |f zero o|r more p|
|00000e30| 6f 73 69 74 69 6f 6e 61 | 6c 20 70 61 72 61 6d 65 |ositiona|l parame|
|00000e40| 74 65 72 73 20 6f 66 20 | 74 68 65 0a 58 66 6f 72 |ters of |the.Xfor|
|00000e50| 6d 20 5c 66 49 76 61 6c | 75 65 5c 66 50 2c 20 66 |m \fIval|ue\fP, f|
|00000e60| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 7a 65 72 6f 20 |ollowed |by zero |
|00000e70| 6f 72 20 6d 6f 72 65 20 | 6b 65 79 77 6f 72 64 20 |or more |keyword |
|00000e80| 70 61 72 61 6d 65 74 65 | 72 73 20 6f 66 20 74 68 |paramete|rs of th|
|00000e90| 65 20 66 6f 72 6d 0a 58 | 5c 66 49 6e 61 6d 65 5c |e form.X|\fIname\|
|00000ea0| 66 50 3d 5c 66 49 76 61 | 6c 75 65 5c 66 50 2e 20 |fP=\fIva|lue\fP. |
|00000eb0| 20 45 61 63 68 20 70 6f | 73 69 74 69 6f 6e 61 6c | Each po|sitional|
|00000ec0| 20 70 61 72 61 6d 65 74 | 65 72 20 68 61 73 20 61 | paramet|er has a|
|00000ed0| 20 6e 61 6d 65 20 61 6e | 64 20 6d 61 79 20 62 65 | name an|d may be|
|00000ee0| 0a 58 73 70 65 63 69 66 | 69 65 64 20 69 6e 20 6b |.Xspecif|ied in k|
|00000ef0| 65 79 77 6f 72 64 20 66 | 6f 72 6d 20 61 73 20 77 |eyword f|orm as w|
|00000f00| 65 6c 6c 2e 20 20 54 68 | 65 20 70 6f 73 69 74 69 |ell. Th|e positi|
|00000f10| 6f 6e 61 6c 20 66 6f 72 | 6d 20 69 73 20 6d 6f 72 |onal for|m is mor|
|00000f20| 65 20 63 6f 6e 76 65 6e | 69 65 6e 74 0a 58 66 6f |e conven|ient.Xfo|
|00000f30| 72 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 69 6e |r intera|ctive in|
|00000f40| 70 75 74 2c 20 77 68 69 | 6c 65 20 74 68 65 20 6b |put, whi|le the k|
|00000f50| 65 79 77 6f 72 64 20 66 | 6f 72 6d 20 69 73 20 6d |eyword f|orm is m|
|00000f60| 6f 72 65 20 73 75 69 74 | 65 64 20 66 6f 72 20 63 |ore suit|ed for c|
|00000f70| 72 65 61 74 69 6e 67 0a | 58 73 65 6c 66 2d 64 6f |reating.|Xself-do|
|00000f80| 63 75 6d 65 6e 74 69 6e | 67 20 73 63 72 69 70 74 |cumentin|g script|
|00000f90| 20 66 69 6c 65 73 2e 0a | 58 2e 50 50 0a 58 54 6f | files..|X.PP.XTo|
|00000fa0| 20 70 72 6f 76 69 64 65 | 20 76 61 6c 75 65 73 20 | provide| values |
|00000fb0| 66 6f 72 20 70 61 72 61 | 6d 65 74 65 72 73 20 74 |for para|meters t|
|00000fc0| 68 61 74 20 61 72 65 20 | 6e 6f 74 20 73 70 65 63 |hat are |not spec|
|00000fd0| 69 66 69 65 64 20 69 6e | 20 61 20 63 6f 6d 6d 61 |ified in| a comma|
|00000fe0| 6e 64 2c 0a 58 5c 66 49 | 67 62 65 6e 63 68 5c 66 |nd,.X\fI|gbench\f|
|00000ff0| 50 20 6d 61 69 6e 74 61 | 69 6e 73 20 61 20 73 65 |P mainta|ins a se|
|00001000| 74 20 6f 66 20 67 6c 6f | 62 61 6c 20 64 65 66 61 |t of glo|bal defa|
|00001010| 75 6c 74 73 20 74 68 61 | 74 20 6d 61 79 20 62 65 |ults tha|t may be|
|00001020| 20 64 69 73 70 6c 61 79 | 65 64 20 61 6e 64 0a 58 | display|ed and.X|
|00001030| 63 68 61 6e 67 65 64 20 | 75 73 69 6e 67 20 74 68 |changed |using th|
|00001040| 65 20 27 64 65 66 61 75 | 6c 74 27 20 63 6f 6d 6d |e 'defau|lt' comm|
|00001050| 61 6e 64 2e 20 20 45 61 | 63 68 20 64 65 66 61 75 |and. Ea|ch defau|
|00001060| 6c 74 20 76 61 6c 75 65 | 20 68 61 73 20 61 20 6e |lt value| has a n|
|00001070| 61 6d 65 20 61 6e 64 20 | 6d 61 79 0a 58 62 65 20 |ame and |may.Xbe |
|00001080| 6f 76 65 72 72 69 64 64 | 65 6e 20 69 6e 20 61 20 |overridd|en in a |
|00001090| 63 6f 6d 6d 61 6e 64 20 | 75 73 69 6e 67 20 61 20 |command |using a |
|000010a0| 5c 66 49 6e 61 6d 65 5c | 66 50 3d 5c 66 49 76 61 |\fIname\|fP=\fIva|
|000010b0| 6c 75 65 5c 66 50 20 70 | 61 72 61 6d 65 74 65 72 |lue\fP p|arameter|
|000010c0| 2e 0a 58 54 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |..XThe n|ames of |
|000010d0| 61 6c 6c 20 67 6c 6f 62 | 61 6c 20 64 65 66 61 75 |all glob|al defau|
|000010e0| 6c 74 20 76 61 6c 75 65 | 73 20 61 72 65 20 67 69 |lt value|s are gi|
|000010f0| 76 65 6e 20 62 65 6c 6f | 77 2e 20 20 54 68 65 0a |ven belo|w. The.|
|00001100| 58 27 69 6e 69 74 27 20 | 63 6f 6d 6d 61 6e 64 20 |X'init' |command |
|00001110| 72 65 73 74 6f 72 65 73 | 20 61 6c 6c 20 67 6c 6f |restores| all glo|
|00001120| 62 61 6c 20 64 65 66 61 | 75 6c 74 73 20 74 6f 20 |bal defa|ults to |
|00001130| 74 68 65 69 72 20 69 6e | 69 74 69 61 6c 20 76 61 |their in|itial va|
|00001140| 6c 75 65 73 2e 0a 58 2e | 50 50 0a 58 54 68 65 20 |lues..X.|PP.XThe |
|00001150| 66 69 72 73 74 20 70 6f | 73 69 74 69 6f 6e 61 6c |first po|sitional|
|00001160| 20 70 61 72 61 6d 65 74 | 65 72 20 66 6f 72 20 65 | paramet|er for e|
|00001170| 61 63 68 20 63 6f 6d 6d | 61 6e 64 20 69 73 20 5c |ach comm|and is \|
|00001180| 66 49 6f 70 74 73 5c 66 | 50 2e 20 20 49 74 20 69 |fIopts\f|P. It i|
|00001190| 73 20 61 0a 58 63 6f 6d | 6d 61 2d 73 65 70 61 72 |s a.Xcom|ma-separ|
|000011a0| 61 74 65 64 20 6c 69 73 | 74 20 6f 66 20 6f 70 74 |ated lis|t of opt|
|000011b0| 69 6f 6e 20 66 6c 61 67 | 73 2c 20 74 68 65 20 6d |ion flag|s, the m|
|000011c0| 65 61 6e 69 6e 67 73 20 | 6f 66 20 77 68 69 63 68 |eanings |of which|
|000011d0| 20 61 72 65 20 64 65 73 | 63 72 69 62 65 64 0a 58 | are des|cribed.X|
|000011e0| 62 65 6c 6f 77 2e 20 20 | 4f 70 74 69 6f 6e 20 66 |below. |Option f|
|000011f0| 6c 61 67 73 20 6d 61 79 | 20 62 65 20 73 75 70 70 |lags may| be supp|
|00001200| 6c 69 65 64 20 69 6e 20 | 61 6e 79 20 6f 72 64 65 |lied in |any orde|
|00001210| 72 2e 20 20 49 66 20 74 | 68 65 20 5c 66 49 6f 70 |r. If t|he \fIop|
|00001220| 74 73 5c 66 50 0a 58 70 | 61 72 61 6d 65 74 65 72 |ts\fP.Xp|arameter|
|00001230| 20 69 73 20 67 69 76 65 | 6e 20 69 6e 20 70 6f 73 | is give|n in pos|
|00001240| 69 74 69 6f 6e 61 6c 20 | 66 6f 72 6d 2c 20 74 68 |itional |form, th|
|00001250| 65 20 67 6c 6f 62 61 6c | 20 64 65 66 61 75 6c 74 |e global| default|
|00001260| 20 6f 70 74 69 6f 6e 20 | 6c 69 73 74 20 69 73 0a | option |list is.|
|00001270| 58 70 72 65 70 65 6e 64 | 65 64 20 74 6f 20 74 68 |Xprepend|ed to th|
|00001280| 65 20 67 69 76 65 6e 20 | 6c 69 73 74 3b 20 69 66 |e given |list; if|
|00001290| 20 69 74 20 69 73 20 67 | 69 76 65 6e 20 69 6e 20 | it is g|iven in |
|000012a0| 6b 65 79 77 6f 72 64 20 | 66 6f 72 6d 2c 20 74 68 |keyword |form, th|
|000012b0| 65 20 67 69 76 65 6e 0a | 58 6c 69 73 74 20 69 73 |e given.|Xlist is|
|000012c0| 20 75 73 65 64 20 61 73 | 20 69 73 2c 20 6f 76 65 | used as| is, ove|
|000012d0| 72 72 69 64 69 6e 67 20 | 74 68 65 20 67 6c 6f 62 |rriding |the glob|
|000012e0| 61 6c 20 64 65 66 61 75 | 6c 74 20 6f 70 74 69 6f |al defau|lt optio|
|000012f0| 6e 20 6c 69 73 74 2e 0a | 58 2e 50 50 0a 58 54 68 |n list..|X.PP.XTh|
|00001300| 65 20 63 6f 6d 6d 61 6e | 64 73 20 61 72 65 3a 0a |e comman|ds are:.|
|00001310| 58 2e 54 50 0a 58 61 72 | 63 20 5b 5c 66 49 6f 70 |X.TP.Xar|c [\fIop|
|00001320| 74 73 5c 66 50 5d 20 5b | 5c 66 49 73 69 7a 65 5c |ts\fP] [|\fIsize\|
|00001330| 66 50 5d 20 5b 5c 66 49 | 61 73 70 65 63 74 5c 66 |fP] [\fI|aspect\f|
|00001340| 50 5d 20 5b 5c 66 49 61 | 6e 67 6c 65 5c 66 50 5d |P] [\fIa|ngle\fP]|
|00001350| 20 5b 5c 66 49 6c 77 69 | 64 74 68 5c 66 50 5d 20 | [\fIlwi|dth\fP] |
|00001360| 5b 5c 66 49 6e 61 6d 65 | 5c 66 50 3d 5c 66 49 76 |[\fIname|\fP=\fIv|
|00001370| 61 6c 75 65 5c 66 50 5d | 2a 0a 58 44 72 61 77 73 |alue\fP]|*.XDraws|
|00001380| 20 61 6e 20 61 72 63 20 | 6f 66 20 61 6e 20 65 6c | an arc |of an el|
|00001390| 6c 69 70 73 65 2e 20 20 | 54 68 65 20 65 6c 6c 69 |lipse. |The elli|
|000013a0| 70 73 65 20 69 73 20 64 | 72 61 77 6e 20 69 6e 20 |pse is d|rawn in |
|000013b0| 61 20 62 6f 75 6e 64 69 | 6e 67 20 62 6f 78 20 77 |a boundi|ng box w|
|000013c0| 69 74 68 20 61 6e 0a 58 | 61 72 65 61 20 6f 66 20 |ith an.X|area of |
|000013d0| 5c 66 49 73 69 7a 65 5c | 66 50 20 73 71 75 61 72 |\fIsize\|fP squar|
|000013e0| 65 64 20 70 69 78 65 6c | 73 20 61 6e 64 20 61 20 |ed pixel|s and a |
|000013f0| 68 65 69 67 68 74 2f 77 | 69 64 74 68 20 72 61 74 |height/w|idth rat|
|00001400| 69 6f 20 6f 66 20 5c 66 | 49 61 73 70 65 63 74 5c |io of \f|Iaspect\|
|00001410| 66 50 2e 0a 58 54 68 65 | 20 64 65 66 61 75 6c 74 |fP..XThe| default|
|00001420| 20 76 61 6c 75 65 20 6f | 66 20 5c 66 49 61 73 70 | value o|f \fIasp|
|00001430| 65 63 74 5c 66 50 20 69 | 73 20 31 2e 30 2c 20 79 |ect\fP i|s 1.0, y|
|00001440| 69 65 6c 64 69 6e 67 20 | 61 20 63 69 72 63 75 6c |ielding |a circul|
|00001450| 61 72 20 61 72 63 2e 0a | 58 54 68 65 20 61 72 63 |ar arc..|XThe arc|
|00001460| 20 62 65 67 69 6e 73 20 | 61 74 20 74 68 65 20 33 | begins |at the 3|
|00001470| 20 6f 27 63 6c 6f 63 6b | 20 70 6f 73 69 74 69 6f | o'clock| positio|
|00001480| 6e 20 61 6e 64 20 63 6f | 6e 74 69 6e 75 65 73 20 |n and co|ntinues |
|00001490| 63 6f 75 6e 74 65 72 63 | 6c 6f 63 6b 77 69 73 65 |counterc|lockwise|
|000014a0| 20 66 6f 72 0a 58 5c 66 | 49 61 6e 67 6c 65 5c 66 | for.X\f|Iangle\f|
|000014b0| 50 20 64 65 67 72 65 65 | 73 2e 20 20 54 68 69 73 |P degree|s. This|
|000014c0| 20 63 6f 6d 6d 61 6e 64 | 20 77 6f 72 6b 73 20 6f | command| works o|
|000014d0| 6e 6c 79 20 69 6e 20 74 | 68 65 20 58 31 31 20 76 |nly in t|he X11 v|
|000014e0| 65 72 73 69 6f 6e 2e 0a | 58 2e 54 50 0a 58 62 6c |ersion..|X.TP.Xbl|
|000014f0| 69 74 20 5b 5c 66 49 6f | 70 74 73 5c 66 50 5d 20 |it [\fIo|pts\fP] |
|00001500| 5b 5c 66 49 73 69 7a 65 | 5c 66 50 5d 20 5b 5c 66 |[\fIsize|\fP] [\f|
|00001510| 49 6f 66 66 73 65 74 5c | 66 50 5d 20 5b 5c 66 49 |Ioffset\|fP] [\fI|
|00001520| 6e 61 6d 65 5c 66 50 3d | 5c 66 49 76 61 6c 75 65 |name\fP=|\fIvalue|
|00001530| 5c 66 50 5d 2a 0a 58 43 | 6f 70 69 65 73 20 61 20 |\fP]*.XC|opies a |
|00001540| 73 71 75 61 72 65 20 61 | 72 65 61 20 6f 66 20 74 |square a|rea of t|
|00001550| 68 65 20 77 69 6e 64 6f | 77 2c 20 5c 66 49 73 69 |he windo|w, \fIsi|
|00001560| 7a 65 5c 66 50 20 70 69 | 78 65 6c 73 20 6f 6e 20 |ze\fP pi|xels on |
|00001570| 61 20 73 69 64 65 2c 20 | 74 6f 0a 58 61 6e 20 61 |a side, |to.Xan a|
|00001580| 72 65 61 20 6f 66 66 73 | 65 74 20 62 79 20 5c 66 |rea offs|et by \f|
|00001590| 49 6f 66 66 73 65 74 5c | 66 50 2a 5c 66 49 73 69 |Ioffset\|fP*\fIsi|
|000015a0| 7a 65 5c 66 50 20 70 69 | 78 65 6c 73 2e 20 20 54 |ze\fP pi|xels. T|
|000015b0| 68 65 20 64 65 66 61 75 | 6c 74 20 76 61 6c 75 65 |he defau|lt value|
|000015c0| 20 66 6f 72 0a 58 5c 66 | 49 6f 66 66 73 65 74 5c | for.X\f|Ioffset\|
|000015d0| 66 50 20 69 73 20 30 2e | 35 2e 0a 58 2e 54 50 0a |fP is 0.|5..X.TP.|
|000015e0| 58 6d 61 70 20 5b 5c 66 | 49 6f 70 74 73 5c 66 50 |Xmap [\f|Iopts\fP|
|000015f0| 5d 20 5b 5c 66 49 73 69 | 7a 65 5c 66 50 5d 20 5b |] [\fIsi|ze\fP] [|
|00001600| 5c 66 49 6e 77 69 6e 5c | 66 50 5d 20 5b 5c 66 49 |\fInwin\|fP] [\fI|
|00001610| 6e 61 6d 65 5c 66 50 3d | 5c 66 49 76 61 6c 75 65 |name\fP=|\fIvalue|
|00001620| 5c 66 50 5d 2a 0a 58 4d | 61 70 73 20 61 6e 64 20 |\fP]*.XM|aps and |
|00001630| 74 68 65 6e 20 75 6e 6d | 61 70 73 20 5c 66 49 6e |then unm|aps \fIn|
|00001640| 77 69 6e 5c 66 50 20 73 | 71 75 61 72 65 20 73 75 |win\fP s|quare su|
|00001650| 62 77 69 6e 64 6f 77 73 | 2c 20 65 61 63 68 20 5c |bwindows|, each \|
|00001660| 66 49 73 69 7a 65 5c 66 | 50 0a 58 70 69 78 65 6c |fIsize\f|P.Xpixel|
|00001670| 73 20 6f 6e 20 61 20 73 | 69 64 65 2e 0a 58 2e 54 |s on a s|ide..X.T|
|00001680| 50 0a 58 6e 6f 70 20 5b | 5c 66 49 6f 70 74 73 5c |P.Xnop [|\fIopts\|
|00001690| 66 50 5d 20 5b 5c 66 49 | 6e 61 6d 65 5c 66 50 3d |fP] [\fI|name\fP=|
|000016a0| 5c 66 49 76 61 6c 75 65 | 5c 66 50 5d 2a 0a 58 50 |\fIvalue|\fP]*.XP|
|000016b0| 65 72 66 6f 72 6d 73 20 | 61 20 77 69 6e 64 6f 77 |erforms |a window|
|000016c0| 20 73 65 72 76 65 72 20 | 6e 6f 2d 6f 70 2e 20 20 | server |no-op. |
|000016d0| 54 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 77 6f 72 |This com|mand wor|
|000016e0| 6b 73 20 6f 6e 6c 79 20 | 69 6e 20 74 68 65 20 58 |ks only |in the X|
|000016f0| 31 31 20 76 65 72 73 69 | 6f 6e 2e 0a 58 2e 54 50 |11 versi|on..X.TP|
|00001700| 0a 58 70 6f 69 6e 74 20 | 5b 5c 66 49 6f 70 74 73 |.Xpoint |[\fIopts|
|00001710| 5c 66 50 5d 0a 58 44 72 | 61 77 73 20 61 20 70 6f |\fP].XDr|aws a po|
|00001720| 69 6e 74 2e 20 20 54 68 | 69 73 20 63 6f 6d 6d 61 |int. Th|is comma|
|00001730| 6e 64 20 77 6f 72 6b 73 | 20 6f 6e 6c 79 20 69 6e |nd works| only in|
|00001740| 20 74 68 65 20 58 31 31 | 20 76 65 72 73 69 6f 6e | the X11| version|
|00001750| 2e 0a 58 2e 54 50 0a 58 | 70 6f 6c 79 20 5b 5c 66 |..X.TP.X|poly [\f|
|00001760| 49 6f 70 74 73 5c 66 50 | 5d 20 5b 5c 66 49 73 69 |Iopts\fP|] [\fIsi|
|00001770| 7a 65 5c 66 50 5d 20 5b | 5c 66 49 6e 76 65 72 74 |ze\fP] [|\fInvert|
|00001780| 5c 66 50 5d 20 5b 5c 66 | 49 6c 77 69 64 74 68 5c |\fP] [\f|Ilwidth\|
|00001790| 66 50 5d 20 5b 5c 66 49 | 6e 61 6d 65 5c 66 50 3d |fP] [\fI|name\fP=|
|000017a0| 5c 66 49 76 61 6c 75 65 | 5c 66 50 5d 2a 0a 58 44 |\fIvalue|\fP]*.XD|
|000017b0| 72 61 77 73 20 61 20 70 | 6f 6c 79 67 6f 6e 20 77 |raws a p|olygon w|
|000017c0| 69 74 68 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |ith the |specifie|
|000017d0| 64 20 6e 75 6d 62 65 72 | 20 6f 66 20 76 65 72 74 |d number| of vert|
|000017e0| 69 63 65 73 20 61 6e 64 | 20 6c 69 6e 65 77 69 64 |ices and| linewid|
|000017f0| 74 68 2c 0a 58 69 6e 73 | 63 72 69 62 65 64 20 69 |th,.Xins|cribed i|
|00001800| 6e 20 61 20 63 69 72 63 | 6c 65 20 6f 66 20 72 61 |n a circ|le of ra|
|00001810| 64 69 75 73 20 5c 66 49 | 73 69 7a 65 5c 66 50 20 |dius \fI|size\fP |
|00001820| 70 69 78 65 6c 73 2e 0a | 58 2e 54 50 0a 58 72 65 |pixels..|X.TP.Xre|
|00001830| 63 74 20 5b 5c 66 49 6f | 70 74 73 5c 66 50 5d 20 |ct [\fIo|pts\fP] |
|00001840| 5b 5c 66 49 73 69 7a 65 | 5c 66 50 5d 20 5b 5c 66 |[\fIsize|\fP] [\f|
|00001850| 49 6c 77 69 64 74 68 5c | 66 50 5d 20 5b 5c 66 49 |Ilwidth\|fP] [\fI|
|00001860| 6e 61 6d 65 5c 66 50 3d | 5c 66 49 76 61 6c 75 65 |name\fP=|\fIvalue|
|00001870| 5c 66 50 5d 2a 0a 58 44 | 72 61 77 73 20 61 6e 20 |\fP]*.XD|raws an |
|00001880| 61 78 69 73 2d 61 6c 69 | 67 6e 65 64 20 73 71 75 |axis-ali|gned squ|
|00001890| 61 72 65 2c 20 5c 66 49 | 73 69 7a 65 5c 66 50 20 |are, \fI|size\fP |
|000018a0| 70 69 78 65 6c 73 20 6f | 6e 20 61 20 73 69 64 65 |pixels o|n a side|
|000018b0| 2c 20 77 69 74 68 20 74 | 68 65 20 73 70 65 63 69 |, with t|he speci|
|000018c0| 66 69 65 64 0a 58 6c 69 | 6e 65 77 69 64 74 68 2e |fied.Xli|newidth.|
|000018d0| 0a 58 2e 54 50 0a 58 74 | 65 78 74 20 5b 5c 66 49 |.X.TP.Xt|ext [\fI|
|000018e0| 6f 70 74 73 5c 66 50 5d | 20 5b 5c 66 49 6e 63 68 |opts\fP]| [\fInch|
|000018f0| 61 72 5c 66 50 5d 20 5b | 5c 66 49 70 74 73 69 7a |ar\fP] [|\fIptsiz|
|00001900| 65 5c 66 50 5d 20 5b 5c | 66 49 6e 61 6d 65 5c 66 |e\fP] [\|fIname\f|
|00001910| 50 3d 5c 66 49 76 61 6c | 75 65 5c 66 50 5d 2a 0a |P=\fIval|ue\fP]*.|
|00001920| 58 44 72 61 77 73 20 61 | 20 74 65 78 74 20 73 74 |XDraws a| text st|
|00001930| 72 69 6e 67 20 77 69 74 | 68 20 74 68 65 20 73 70 |ring wit|h the sp|
|00001940| 65 63 69 66 69 65 64 20 | 6e 75 6d 62 65 72 20 6f |ecified |number o|
|00001950| 66 20 63 68 61 72 61 63 | 74 65 72 73 2c 20 61 74 |f charac|ters, at|
|00001960| 20 74 68 65 0a 58 73 70 | 65 63 69 66 69 65 64 20 | the.Xsp|ecified |
|00001970| 70 6f 69 6e 74 20 73 69 | 7a 65 2e 20 20 54 68 65 |point si|ze. The|
|00001980| 20 63 6c 6f 73 65 73 74 | 20 61 76 61 69 6c 61 62 | closest| availab|
|00001990| 6c 65 20 70 6f 69 6e 74 | 20 73 69 7a 65 20 69 73 |le point| size is|
|000019a0| 20 63 68 6f 73 65 6e 2e | 0a 58 2e 54 50 0a 58 76 | chosen.|.X.TP.Xv|
|000019b0| 65 63 20 5b 5c 66 49 6f | 70 74 73 5c 66 50 5d 20 |ec [\fIo|pts\fP] |
|000019c0| 5b 5c 66 49 73 69 7a 65 | 5c 66 50 5d 20 5b 5c 66 |[\fIsize|\fP] [\f|
|000019d0| 49 61 6e 67 6c 65 5c 66 | 50 5d 20 5b 5c 66 49 6c |Iangle\f|P] [\fIl|
|000019e0| 77 69 64 74 68 5c 66 50 | 5d 20 5b 5c 66 49 6e 61 |width\fP|] [\fIna|
|000019f0| 6d 65 5c 66 50 3d 5c 66 | 49 76 61 6c 75 65 5c 66 |me\fP=\f|Ivalue\f|
|00001a00| 50 5d 2a 0a 58 44 72 61 | 77 73 20 61 20 76 65 63 |P]*.XDra|ws a vec|
|00001a10| 74 6f 72 20 5c 66 49 73 | 69 7a 65 5c 66 50 20 70 |tor \fIs|ize\fP p|
|00001a20| 69 78 65 6c 73 20 6c 6f | 6e 67 2c 20 77 69 74 68 |ixels lo|ng, with|
|00001a30| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 6c | the spe|cified l|
|00001a40| 69 6e 65 77 69 64 74 68 | 20 61 6e 64 0a 58 61 6e |inewidth| and.Xan|
|00001a50| 67 6c 65 20 28 67 69 76 | 65 6e 20 69 6e 20 64 65 |gle (giv|en in de|
|00001a60| 67 72 65 65 73 20 63 6f | 75 6e 74 65 72 63 6c 6f |grees co|unterclo|
|00001a70| 63 6b 77 69 73 65 20 66 | 72 6f 6d 20 74 68 65 20 |ckwise f|rom the |
|00001a80| 33 20 6f 27 63 6c 6f 63 | 6b 20 70 6f 73 69 74 69 |3 o'cloc|k positi|
|00001a90| 6f 6e 29 2e 0a 58 2e 54 | 50 0a 58 63 6f 6e 66 69 |on)..X.T|P.Xconfi|
|00001aa0| 67 0a 58 50 72 69 6e 74 | 73 20 74 68 65 20 68 6f |g.XPrint|s the ho|
|00001ab0| 73 74 20 6e 61 6d 65 2c | 20 64 69 73 70 6c 61 79 |st name,| display|
|00001ac0| 20 6e 61 6d 65 2c 20 77 | 69 6e 64 6f 77 20 73 79 | name, w|indow sy|
|00001ad0| 73 74 65 6d 20 76 65 72 | 73 69 6f 6e 2c 20 63 75 |stem ver|sion, cu|
|00001ae0| 72 72 65 6e 74 20 74 69 | 6d 65 2c 0a 58 61 6e 64 |rrent ti|me,.Xand|
|00001af0| 20 74 61 67 20 28 73 65 | 65 20 62 65 6c 6f 77 29 | tag (se|e below)|
|00001b00| 20 6f 6e 20 74 68 65 20 | 6f 75 74 66 69 6c 65 2e | on the |outfile.|
|00001b10| 0a 58 2e 54 50 0a 58 64 | 65 66 61 75 6c 74 73 20 |.X.TP.Xd|efaults |
|00001b20| 5b 5c 66 49 6e 61 6d 65 | 5c 66 50 3d 5c 66 49 76 |[\fIname|\fP=\fIv|
|00001b30| 61 6c 75 65 5c 66 50 5d | 2a 0a 58 50 72 69 6e 74 |alue\fP]|*.XPrint|
|00001b40| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 73 20 6f |s the de|faults o|
|00001b50| 6e 20 73 74 61 6e 64 61 | 72 64 20 65 72 72 6f 72 |n standa|rd error|
|00001b60| 20 61 6e 64 20 6f 70 74 | 69 6f 6e 61 6c 6c 79 20 | and opt|ionally |
|00001b70| 63 68 61 6e 67 65 73 20 | 74 68 65 6d 2e 20 20 54 |changes |them. T|
|00001b80| 68 65 0a 58 6e 61 6d 65 | 73 20 6f 66 20 74 68 65 |he.Xname|s of the|
|00001b90| 20 64 65 66 61 75 6c 74 | 20 76 61 6c 75 65 73 20 | default| values |
|00001ba0| 61 72 65 20 67 69 76 65 | 6e 20 62 65 6c 6f 77 2e |are give|n below.|
|00001bb0| 0a 58 2e 54 50 0a 58 68 | 65 6c 70 0a 58 50 72 69 |.X.TP.Xh|elp.XPri|
|00001bc0| 6e 74 73 20 61 20 68 65 | 6c 70 20 6d 65 73 73 61 |nts a he|lp messa|
|00001bd0| 67 65 20 6f 6e 20 74 68 | 65 20 6f 75 74 66 69 6c |ge on th|e outfil|
|00001be0| 65 20 6c 69 73 74 69 6e | 67 20 74 68 65 20 61 76 |e listin|g the av|
|00001bf0| 61 69 6c 61 62 6c 65 20 | 63 6f 6d 6d 61 6e 64 73 |ailable |commands|
|00001c00| 20 61 6e 64 0a 58 6f 70 | 74 69 6f 6e 20 66 6c 61 | and.Xop|tion fla|
|00001c10| 67 73 2e 0a 58 2e 54 50 | 0a 58 69 6e 69 74 0a 58 |gs..X.TP|.Xinit.X|
|00001c20| 52 65 73 74 6f 72 65 73 | 20 61 6c 6c 20 64 65 66 |Restores| all def|
|00001c30| 61 75 6c 74 73 20 74 6f | 20 74 68 65 69 72 20 69 |aults to| their i|
|00001c40| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 2c 20 61 6e |nitial v|alue, an|
|00001c50| 64 20 70 72 69 6e 74 73 | 20 74 68 65 20 75 70 64 |d prints| the upd|
|00001c60| 61 74 65 64 0a 58 73 65 | 74 20 6f 66 20 76 61 6c |ated.Xse|t of val|
|00001c70| 75 65 73 20 6f 6e 20 73 | 74 61 6e 64 61 72 64 20 |ues on s|tandard |
|00001c80| 65 72 72 6f 72 2e 0a 58 | 2e 54 50 0a 58 73 63 72 |error..X|.TP.Xscr|
|00001c90| 69 70 74 20 5b 5c 66 49 | 66 69 6c 65 6e 61 6d 65 |ipt [\fI|filename|
|00001ca0| 5c 66 50 5d 0a 58 52 75 | 6e 20 74 68 65 20 67 69 |\fP].XRu|n the gi|
|00001cb0| 76 65 6e 20 73 63 72 69 | 70 74 20 66 69 6c 65 2c |ven scri|pt file,|
|00001cc0| 20 77 68 69 63 68 20 6d | 61 79 20 69 74 73 65 6c | which m|ay itsel|
|00001cd0| 66 20 75 73 65 20 74 68 | 65 20 27 73 63 72 69 70 |f use th|e 'scrip|
|00001ce0| 74 27 20 63 6f 6d 6d 61 | 6e 64 2e 20 20 49 66 0a |t' comma|nd. If.|
|00001cf0| 58 6e 6f 20 66 69 6c 65 | 20 69 73 20 67 69 76 65 |Xno file| is give|
|00001d00| 6e 2c 20 74 68 65 20 62 | 75 69 6c 74 2d 69 6e 20 |n, the b|uilt-in |
|00001d10| 73 63 72 69 70 74 20 69 | 73 20 72 75 6e 2e 0a 58 |script i|s run..X|
|00001d20| 2e 54 50 0a 58 71 75 69 | 74 0a 58 45 78 69 74 73 |.TP.Xqui|t.XExits|
|00001d30| 20 5c 66 49 67 62 65 6e | 63 68 5c 66 50 2e 0a 58 | \fIgben|ch\fP..X|
|00001d40| 2e 54 50 0a 58 21 0a 58 | 52 65 70 65 61 74 3a 20 |.TP.X!.X|Repeat: |
|00001d50| 20 52 65 2d 69 73 73 75 | 65 20 74 68 65 20 70 72 | Re-issu|e the pr|
|00001d60| 65 76 69 6f 75 73 20 64 | 72 61 77 69 6e 67 20 63 |evious d|rawing c|
|00001d70| 6f 6d 6d 61 6e 64 2c 20 | 77 69 74 68 20 70 61 72 |ommand, |with par|
|00001d80| 61 6d 65 74 65 72 73 20 | 64 65 66 61 75 6c 74 69 |ameters |defaulti|
|00001d90| 6e 67 0a 58 74 6f 20 74 | 68 65 20 76 61 6c 75 65 |ng.Xto t|he value|
|00001da0| 73 20 75 73 65 64 20 77 | 68 65 6e 20 74 68 61 74 |s used w|hen that|
|00001db0| 20 63 6f 6d 6d 61 6e 64 | 20 77 61 73 20 65 78 65 | command| was exe|
|00001dc0| 63 75 74 65 64 2c 20 72 | 61 74 68 65 72 20 74 68 |cuted, r|ather th|
|00001dd0| 61 6e 20 74 6f 20 74 68 | 65 20 67 6c 6f 62 61 6c |an to th|e global|
|00001de0| 0a 58 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 73 |.Xdefaul|t values|
|00001df0| 2e 20 20 50 6f 73 69 74 | 69 6f 6e 61 6c 20 61 6e |. Posit|ional an|
|00001e00| 64 20 6b 65 79 77 6f 72 | 64 20 70 61 72 61 6d 65 |d keywor|d parame|
|00001e10| 74 65 72 73 20 66 6f 72 | 20 74 68 65 20 63 6f 6d |ters for| the com|
|00001e20| 6d 61 6e 64 20 6d 61 79 | 20 62 65 0a 58 67 69 76 |mand may| be.Xgiv|
|00001e30| 65 6e 20 69 6e 20 74 68 | 65 20 6e 6f 72 6d 61 6c |en in th|e normal|
|00001e40| 20 6d 61 6e 6e 65 72 20 | 74 6f 20 6f 76 65 72 72 | manner |to overr|
|00001e50| 69 64 65 20 74 68 65 20 | 64 65 66 61 75 6c 74 73 |ide the |defaults|
|00001e60| 2e 20 20 41 73 20 75 73 | 75 61 6c 2c 20 69 66 20 |. As us|ual, if |
|00001e70| 74 68 65 0a 58 5c 66 49 | 6f 70 74 73 5c 66 50 20 |the.X\fI|opts\fP |
|00001e80| 70 61 72 61 6d 65 74 65 | 72 20 69 73 20 67 69 76 |paramete|r is giv|
|00001e90| 65 6e 20 69 6e 20 70 6f | 73 69 74 69 6f 6e 61 6c |en in po|sitional|
|00001ea0| 20 66 6f 72 6d 2c 20 74 | 68 65 20 64 65 66 61 75 | form, t|he defau|
|00001eb0| 6c 74 20 6f 70 74 69 6f | 6e 0a 58 6c 69 73 74 20 |lt optio|n.Xlist |
|00001ec0| 69 73 20 70 72 65 70 65 | 6e 64 65 64 20 74 6f 20 |is prepe|nded to |
|00001ed0| 74 68 65 20 67 69 76 65 | 6e 20 6c 69 73 74 2c 20 |the give|n list, |
|00001ee0| 77 68 65 72 65 61 73 20 | 69 66 20 69 74 20 69 73 |whereas |if it is|
|00001ef0| 20 67 69 76 65 6e 20 69 | 6e 20 6b 65 79 77 6f 72 | given i|n keywor|
|00001f00| 64 0a 58 66 6f 72 6d 2c | 20 74 68 65 20 67 69 76 |d.Xform,| the giv|
|00001f10| 65 6e 20 6c 69 73 74 20 | 6f 76 65 72 72 69 64 65 |en list |override|
|00001f20| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 6f 70 |s the de|fault op|
|00001f30| 74 69 6f 6e 20 6c 69 73 | 74 2e 0a 58 2e 54 50 0a |tion lis|t..X.TP.|
|00001f40| 58 23 0a 58 43 6f 6d 6d | 65 6e 74 3a 20 20 63 61 |X#.XComm|ent: ca|
|00001f50| 75 73 65 73 20 5c 66 49 | 67 62 65 6e 63 68 5c 66 |uses \fI|gbench\f|
|00001f60| 50 20 74 6f 20 77 72 69 | 74 65 20 74 68 65 20 72 |P to wri|te the r|
|00001f70| 65 73 74 20 6f 66 20 74 | 68 65 20 63 6f 6d 6d 61 |est of t|he comma|
|00001f80| 6e 64 20 74 6f 0a 58 74 | 68 65 20 6f 75 74 66 69 |nd to.Xt|he outfi|
|00001f90| 6c 65 2e 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |le. This| is usef|
|00001fa0| 75 6c 20 66 6f 72 20 70 | 75 74 74 69 6e 67 20 63 |ul for p|utting c|
|00001fb0| 6f 6d 6d 65 6e 74 73 20 | 69 6e 20 73 63 72 69 70 |omments |in scrip|
|00001fc0| 74 20 66 69 6c 65 73 2e | 20 20 41 66 74 65 72 0a |t files.| After.|
|00001fd0| 58 65 63 68 6f 69 6e 67 | 20 61 6e 64 20 65 78 65 |Xechoing| and exe|
|00001fe0| 63 75 74 69 6e 67 20 65 | 61 63 68 20 63 6f 6d 6d |cuting e|ach comm|
|00001ff0| 61 6e 64 2c 20 5c 66 49 | 67 62 65 6e 63 68 5c 66 |and, \fI|gbench\f|
|00002000| 50 20 77 72 69 74 65 73 | 20 61 20 72 65 73 75 6c |P writes| a resul|
|00002010| 74 20 6c 69 6e 65 0a 58 | 74 6f 20 74 68 65 20 6f |t line.X|to the o|
|00002020| 75 74 66 69 6c 65 2e 20 | 20 53 69 6e 63 65 20 65 |utfile. | Since e|
|00002030| 61 63 68 20 72 65 73 75 | 6c 74 20 6c 69 6e 65 20 |ach resu|lt line |
|00002040| 62 65 67 69 6e 73 20 77 | 69 74 68 20 74 68 65 20 |begins w|ith the |
|00002050| 63 6f 6d 6d 65 6e 74 0a | 58 63 68 61 72 61 63 74 |comment.|Xcharact|
|00002060| 65 72 2c 20 5c 66 49 67 | 62 65 6e 63 68 5c 66 50 |er, \fIg|bench\fP|
|00002070| 20 6f 75 74 70 75 74 20 | 6c 6f 67 73 20 61 72 65 | output |logs are|
|00002080| 20 61 6c 73 6f 20 76 61 | 6c 69 64 20 5c 66 49 67 | also va|lid \fIg|
|00002090| 62 65 6e 63 68 5c 66 50 | 20 69 6e 70 75 74 0a 58 |bench\fP| input.X|
|000020a0| 73 63 72 69 70 74 73 2e | 20 20 59 6f 75 20 63 61 |scripts.| You ca|
|000020b0| 6e 20 72 75 6e 20 61 20 | 6c 6f 67 20 74 68 72 6f |n run a |log thro|
|000020c0| 75 67 68 20 5c 66 49 67 | 62 65 6e 63 68 5c 66 50 |ugh \fIg|bench\fP|
|000020d0| 20 73 65 76 65 72 61 6c | 20 74 69 6d 65 73 20 75 | several| times u|
|000020e0| 73 69 6e 67 0a 58 64 69 | 66 66 65 72 65 6e 74 20 |sing.Xdi|fferent |
|000020f0| 68 61 72 64 77 61 72 65 | 20 63 6f 6e 66 69 67 75 |hardware| configu|
|00002100| 72 61 74 69 6f 6e 73 2e | 20 20 49 6e 20 74 68 65 |rations.| In the|
|00002110| 20 72 65 73 75 6c 74 69 | 6e 67 20 6c 6f 67 2c 20 | resulti|ng log, |
|00002120| 65 61 63 68 20 63 6f 6d | 6d 61 6e 64 0a 58 77 69 |each com|mand.Xwi|
|00002130| 6c 6c 20 62 65 20 66 6f | 6c 6c 6f 77 65 64 20 62 |ll be fo|llowed b|
|00002140| 79 20 61 20 73 65 72 69 | 65 73 20 6f 66 20 72 65 |y a seri|es of re|
|00002150| 73 75 6c 74 20 6c 69 6e | 65 73 2c 20 6f 6e 65 20 |sult lin|es, one |
|00002160| 66 6f 72 20 65 61 63 68 | 20 63 6f 6e 66 69 67 75 |for each| configu|
|00002170| 72 61 74 69 6f 6e 2e 0a | 58 2e 50 50 0a 58 5c 66 |ration..|X.PP.X\f|
|00002180| 42 4f 70 74 69 6f 6e 73 | 5c 66 50 0a 58 2e 50 50 |BOptions|\fP.X.PP|
|00002190| 0a 58 54 68 65 20 6f 70 | 74 69 6f 6e 20 66 6c 61 |.XThe op|tion fla|
|000021a0| 67 73 20 61 72 65 20 61 | 73 20 66 6f 6c 6c 6f 77 |gs are a|s follow|
|000021b0| 73 3a 0a 58 2e 54 50 20 | 38 0a 58 61 63 0a 58 41 |s:.X.TP |8.Xac.XA|
|000021c0| 6c 74 65 72 6e 61 74 65 | 20 74 68 65 20 64 72 61 |lternate| the dra|
|000021d0| 77 69 6e 67 20 63 6f 6c | 6f 72 20 62 65 74 77 65 |wing col|or betwe|
|000021e0| 65 6e 20 62 6c 61 63 6b | 20 61 6e 64 20 77 68 69 |en black| and whi|
|000021f0| 74 65 20 6f 6e 20 65 61 | 63 68 20 64 72 61 77 69 |te on ea|ch drawi|
|00002200| 6e 67 0a 58 6f 70 65 72 | 61 74 69 6f 6e 2e 20 20 |ng.Xoper|ation. |
|00002210| 54 68 69 73 20 6d 65 61 | 73 75 72 65 73 20 74 68 |This mea|sures th|
|00002220| 65 20 65 66 66 65 63 74 | 20 6f 66 20 63 68 61 6e |e effect| of chan|
|00002230| 67 69 6e 67 20 6f 6e 65 | 20 65 6c 65 6d 65 6e 74 |ging one| element|
|00002240| 20 6f 66 20 74 68 65 0a | 58 67 72 61 70 68 69 63 | of the.|Xgraphic|
|00002250| 73 20 73 74 61 74 65 20 | 66 6f 72 20 65 61 63 68 |s state |for each|
|00002260| 20 64 72 61 77 69 6e 67 | 20 6f 70 65 72 61 74 69 | drawing| operati|
|00002270| 6f 6e 2e 0a 58 2e 54 50 | 0a 58 61 66 0a 58 55 73 |on..X.TP|.Xaf.XUs|
|00002280| 65 20 61 20 73 65 70 61 | 72 61 74 65 20 74 65 78 |e a sepa|rate tex|
|00002290| 74 20 69 74 65 6d 2c 20 | 77 69 74 68 20 69 74 73 |t item, |with its|
|000022a0| 20 6f 77 6e 20 66 6f 6e | 74 20 69 64 65 6e 74 69 | own fon|t identi|
|000022b0| 66 69 65 72 2c 20 66 6f | 72 20 65 61 63 68 20 63 |fier, fo|r each c|
|000022c0| 68 61 72 61 63 74 65 72 | 0a 58 69 6e 20 74 68 65 |haracter|.Xin the|
|000022d0| 20 27 74 65 78 74 27 20 | 63 6f 6d 6d 61 6e 64 2e | 'text' |command.|
|000022e0| 20 20 54 68 65 20 73 61 | 6d 65 20 66 6f 6e 74 20 | The sa|me font |
|000022f0| 69 73 20 75 73 65 64 20 | 66 6f 72 20 61 6c 6c 20 |is used |for all |
|00002300| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 54 68 69 |characte|rs. Thi|
|00002310| 73 0a 58 6f 70 74 69 6f | 6e 20 77 6f 72 6b 73 20 |s.Xoptio|n works |
|00002320| 6f 6e 6c 79 20 69 6e 20 | 74 68 65 20 58 31 31 20 |only in |the X11 |
|00002330| 76 65 72 73 69 6f 6e 2e | 0a 58 2e 54 50 0a 58 61 |version.|.X.TP.Xa|
|00002340| 67 0a 58 41 6c 74 65 72 | 6e 61 74 65 20 74 68 65 |g.XAlter|nate the|
|00002350| 20 67 72 61 70 68 69 63 | 73 20 63 6f 6e 74 65 78 | graphic|s contex|
|00002360| 74 20 6f 6e 20 65 61 63 | 68 20 64 72 61 77 69 6e |t on eac|h drawin|
|00002370| 67 20 6f 70 65 72 61 74 | 69 6f 6e 2e 20 20 54 68 |g operat|ion. Th|
|00002380| 65 20 74 77 6f 20 67 72 | 61 70 68 69 63 73 0a 58 |e two gr|aphics.X|
|00002390| 63 6f 6e 74 65 78 74 73 | 20 75 73 65 64 20 61 72 |contexts| used ar|
|000023a0| 65 20 69 64 65 6e 74 69 | 63 61 6c 20 65 78 63 65 |e identi|cal exce|
|000023b0| 70 74 20 74 68 61 74 20 | 6f 6e 65 20 64 72 61 77 |pt that |one draw|
|000023c0| 73 20 77 69 74 68 20 77 | 68 69 74 65 20 61 6e 64 |s with w|hite and|
|000023d0| 20 74 68 65 20 6f 74 68 | 65 72 0a 58 64 72 61 77 | the oth|er.Xdraw|
|000023e0| 73 20 77 69 74 68 20 62 | 6c 61 63 6b 2e 20 20 54 |s with b|lack. T|
|000023f0| 68 65 20 61 63 20 61 6e | 64 20 61 67 20 66 6c 61 |he ac an|d ag fla|
|00002400| 67 73 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |gs can b|e used t|
|00002410| 6f 20 63 6f 6d 70 61 72 | 65 20 74 68 65 20 63 6f |o compar|e the co|
|00002420| 73 74 20 6f 66 0a 58 63 | 68 61 6e 67 69 6e 67 20 |st of.Xc|hanging |
|00002430| 6f 6e 65 20 65 6c 65 6d | 65 6e 74 20 6f 66 20 74 |one elem|ent of t|
|00002440| 68 65 20 67 72 61 70 68 | 69 63 73 20 73 74 61 74 |he graph|ics stat|
|00002450| 65 20 77 69 74 68 20 74 | 68 65 20 63 6f 73 74 20 |e with t|he cost |
|00002460| 6f 66 20 73 77 61 70 70 | 69 6e 67 20 74 68 65 0a |of swapp|ing the.|
|00002470| 58 65 6e 74 69 72 65 20 | 67 72 61 70 68 69 63 73 |Xentire |graphics|
|00002480| 20 73 74 61 74 65 2e 0a | 58 2e 54 50 0a 58 61 77 | state..|X.TP.Xaw|
|00002490| 0a 58 41 6c 74 65 72 6e | 61 74 65 20 77 69 6e 64 |.XAltern|ate wind|
|000024a0| 6f 77 73 20 6f 6e 20 65 | 61 63 68 20 64 72 61 77 |ows on e|ach draw|
|000024b0| 69 6e 67 20 6f 70 65 72 | 61 74 69 6f 6e 2e 20 20 |ing oper|ation. |
|000024c0| 54 68 69 73 20 66 6c 61 | 67 20 6d 61 6b 65 73 20 |This fla|g makes |
|000024d0| 69 74 20 70 6f 73 73 69 | 62 6c 65 0a 58 74 6f 20 |it possi|ble.Xto |
|000024e0| 6d 65 61 73 75 72 65 20 | 74 68 65 20 70 65 72 66 |measure |the perf|
|000024f0| 6f 72 6d 61 6e 63 65 20 | 69 6d 70 61 63 74 20 6f |ormance |impact o|
|00002500| 66 20 63 6f 6e 74 65 78 | 74 2d 73 77 69 74 63 68 |f contex|t-switch|
|00002510| 69 6e 67 20 62 65 74 77 | 65 65 6e 20 77 69 6e 64 |ing betw|een wind|
|00002520| 6f 77 73 2e 0a 58 49 74 | 20 69 73 20 69 6d 70 6f |ows..XIt| is impo|
|00002530| 72 74 61 6e 74 20 74 6f | 20 6b 65 65 70 20 74 68 |rtant to| keep th|
|00002540| 69 73 20 6f 76 65 72 68 | 65 61 64 20 6c 6f 77 20 |is overh|ead low |
|00002550| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 73 75 70 70 |in order| to supp|
|00002560| 6f 72 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |ort appl|ications|
|00002570| 0a 58 74 68 61 74 20 64 | 6f 20 72 65 61 6c 2d 74 |.Xthat d|o real-t|
|00002580| 69 6d 65 20 64 72 61 77 | 69 6e 67 20 69 6e 20 6d |ime draw|ing in m|
|00002590| 75 6c 74 69 70 6c 65 20 | 77 69 6e 64 6f 77 73 20 |ultiple |windows |
|000025a0| 73 69 6d 75 6c 74 61 6e | 65 6f 75 73 6c 79 2e 0a |simultan|eously..|
|000025b0| 58 2e 54 50 0a 58 64 0a | 58 44 72 61 67 67 69 6e |X.TP.Xd.|XDraggin|
|000025c0| 67 2e 20 20 59 6f 75 20 | 61 72 65 20 70 72 6f 6d |g. You |are prom|
|000025d0| 70 74 65 64 20 74 6f 20 | 6d 6f 76 65 20 74 68 65 |pted to |move the|
|000025e0| 20 6d 6f 75 73 65 20 61 | 72 6f 75 6e 64 20 69 6e | mouse a|round in|
|000025f0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 77 68 69 6c | the win|dow whil|
|00002600| 65 0a 58 68 6f 6c 64 69 | 6e 67 20 64 6f 77 6e 20 |e.Xholdi|ng down |
|00002610| 61 20 6d 6f 75 73 65 20 | 62 75 74 74 6f 6e 2e 20 |a mouse |button. |
|00002620| 20 45 76 65 72 79 20 74 | 69 6d 65 20 61 20 6d 6f | Every t|ime a mo|
|00002630| 75 73 65 20 6d 6f 74 69 | 6f 6e 20 65 76 65 6e 74 |use moti|on event|
|00002640| 20 69 73 20 72 65 63 65 | 69 76 65 64 2c 0a 58 5c | is rece|ived,.X\|
|00002650| 66 49 67 62 65 6e 63 68 | 5c 66 50 20 64 72 61 77 |fIgbench|\fP draw|
|00002660| 73 20 61 20 62 61 63 6b | 67 72 6f 75 6e 64 2d 63 |s a back|ground-c|
|00002670| 6f 6c 6f 72 20 72 65 63 | 74 61 6e 67 6c 65 20 74 |olor rec|tangle t|
|00002680| 6f 20 65 72 61 73 65 20 | 74 68 65 20 72 65 73 75 |o erase |the resu|
|00002690| 6c 74 73 20 6f 66 20 74 | 68 65 0a 58 70 72 65 76 |lts of t|he.Xprev|
|000026a0| 69 6f 75 73 20 64 72 61 | 77 69 6e 67 20 6f 70 65 |ious dra|wing ope|
|000026b0| 72 61 74 69 6f 6e 73 2c | 20 74 68 65 6e 20 70 65 |rations,| then pe|
|000026c0| 72 66 6f 72 6d 73 20 6f | 6e 65 20 64 72 61 77 69 |rforms o|ne drawi|
|000026d0| 6e 67 20 69 74 65 72 61 | 74 69 6f 6e 2e 20 20 54 |ng itera|tion. T|
|000026e0| 68 69 73 0a 58 6f 70 74 | 69 6f 6e 20 61 6c 6c 6f |his.Xopt|ion allo|
|000026f0| 77 73 20 79 6f 75 20 74 | 6f 20 6d 65 61 73 75 72 |ws you t|o measur|
|00002700| 65 20 74 68 65 20 66 72 | 61 6d 65 20 72 61 74 65 |e the fr|ame rate|
|00002710| 20 74 68 61 74 20 74 68 | 65 20 73 79 73 74 65 6d | that th|e system|
|00002720| 20 63 61 6e 20 61 63 68 | 69 65 76 65 0a 58 64 75 | can ach|ieve.Xdu|
|00002730| 72 69 6e 67 20 69 6e 74 | 65 72 61 63 74 69 76 65 |ring int|eractive|
|00002740| 20 61 6e 69 6d 61 74 69 | 6f 6e 2e 0a 58 2e 54 50 | animati|on..X.TP|
|00002750| 0a 58 66 0a 58 46 69 6c | 6c 20 74 68 65 20 61 72 |.Xf.XFil|l the ar|
|00002760| 63 2c 20 70 6f 6c 79 67 | 6f 6e 2c 20 6f 72 20 72 |c, polyg|on, or r|
|00002770| 65 63 74 61 6e 67 6c 65 | 20 77 69 74 68 20 61 20 |ectangle| with a |
|00002780| 73 6f 6c 69 64 20 63 6f | 6c 6f 72 2e 0a 58 2e 54 |solid co|lor..X.T|
|00002790| 50 0a 58 69 0a 58 44 72 | 61 77 20 62 79 20 69 6e |P.Xi.XDr|aw by in|
|000027a0| 76 65 72 74 69 6e 67 20 | 70 69 78 65 6c 20 76 61 |verting |pixel va|
|000027b0| 6c 75 65 73 20 72 61 74 | 68 65 72 20 74 68 61 6e |lues rat|her than|
|000027c0| 20 70 61 69 6e 74 69 6e | 67 2e 20 20 54 68 69 73 | paintin|g. This|
|000027d0| 20 6d 65 61 73 75 72 65 | 73 0a 58 74 68 65 20 61 | measure|s.Xthe a|
|000027e0| 64 64 69 74 69 6f 6e 61 | 6c 20 63 6f 73 74 20 6f |dditiona|l cost o|
|000027f0| 66 20 72 65 61 64 69 6e | 67 20 70 69 78 65 6c 73 |f readin|g pixels|
|00002800| 20 66 72 6f 6d 20 74 68 | 65 20 66 72 61 6d 65 20 | from th|e frame |
|00002810| 62 75 66 66 65 72 20 62 | 65 66 6f 72 65 20 77 72 |buffer b|efore wr|
|00002820| 69 74 69 6e 67 2e 0a 58 | 2e 54 50 0a 58 6d 0a 58 |iting..X|.TP.Xm.X|
|00002830| 4d 6f 6e 69 74 6f 72 20 | 66 6f 72 20 70 72 6f 66 |Monitor |for prof|
|00002840| 69 6c 69 6e 67 2e 20 20 | 50 72 6f 66 69 6c 69 6e |iling. |Profilin|
|00002850| 67 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 73 |g inform|ation is|
|00002860| 20 61 63 63 75 6d 75 6c | 61 74 65 64 20 77 68 69 | accumul|ated whi|
|00002870| 6c 65 20 74 68 69 73 0a | 58 63 6f 6d 6d 61 6e 64 |le this.|Xcommand|
|00002880| 20 69 73 20 65 78 65 63 | 75 74 69 6e 67 2e 20 20 | is exec|uting. |
|00002890| 49 66 20 5c 66 49 67 62 | 65 6e 63 68 5c 66 50 20 |If \fIgb|ench\fP |
|000028a0| 68 61 73 20 62 65 65 6e | 20 63 6f 6d 70 69 6c 65 |has been| compile|
|000028b0| 64 20 61 6e 64 20 6c 69 | 6e 6b 65 64 20 66 6f 72 |d and li|nked for|
|000028c0| 0a 58 5c 66 49 67 70 72 | 6f 66 5c 66 50 20 70 72 |.X\fIgpr|of\fP pr|
|000028d0| 6f 66 69 6c 69 6e 67 2c | 20 74 68 69 73 20 69 6e |ofiling,| this in|
|000028e0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 73 20 77 72 69 |formatio|n is wri|
|000028f0| 74 74 65 6e 20 74 6f 20 | 74 68 65 20 66 69 6c 65 |tten to |the file|
|00002900| 20 22 67 6d 6f 6e 2e 6f | 75 74 22 0a 58 69 6e 20 | "gmon.o|ut".Xin |
|00002910| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 69 72 65 |the curr|ent dire|
|00002920| 63 74 6f 72 79 20 77 68 | 65 6e 20 5c 66 49 67 62 |ctory wh|en \fIgb|
|00002930| 65 6e 63 68 5c 66 50 20 | 65 78 69 74 73 2e 0a 58 |ench\fP |exits..X|
|00002940| 2e 54 50 0a 58 6e 0a 58 | 4e 6f 20 6f 70 74 69 6f |.TP.Xn.X|No optio|
|00002950| 6e 73 2e 20 20 49 66 20 | 79 6f 75 20 63 68 6f 6f |ns. If |you choo|
|00002960| 73 65 20 6e 6f 20 6f 70 | 74 69 6f 6e 73 20 61 6e |se no op|tions an|
|00002970| 64 20 79 6f 75 20 73 75 | 70 70 6c 79 20 5c 66 49 |d you su|pply \fI|
|00002980| 6f 70 74 5c 66 50 20 61 | 73 0a 58 61 20 70 6f 73 |opt\fP a|s.Xa pos|
|00002990| 69 74 69 6f 6e 61 6c 20 | 70 61 72 61 6d 65 74 65 |itional |paramete|
|000029a0| 72 2c 20 79 6f 75 20 6d | 75 73 74 20 75 73 65 20 |r, you m|ust use |
|000029b0| 74 68 65 20 6e 20 66 6c | 61 67 20 61 73 20 61 20 |the n fl|ag as a |
|000029c0| 70 6c 61 63 65 68 6f 6c | 64 65 72 2e 0a 58 2e 54 |placehol|der..X.T|
|000029d0| 50 0a 58 6f 0a 58 4f 76 | 65 72 6c 61 70 20 74 68 |P.Xo.XOv|erlap th|
|000029e0| 65 20 6f 62 6a 65 63 74 | 20 62 65 69 6e 67 20 64 |e object| being d|
|000029f0| 72 61 77 6e 20 77 69 74 | 68 20 61 20 76 65 72 79 |rawn wit|h a very|
|00002a00| 20 73 6d 61 6c 6c 20 77 | 69 6e 64 6f 77 2e 20 20 | small w|indow. |
|00002a10| 54 68 65 20 6f 76 65 72 | 6c 61 70 70 69 6e 67 0a |The over|lapping.|
|00002a20| 58 77 69 6e 64 6f 77 20 | 69 73 20 6d 61 64 65 20 |Xwindow |is made |
|00002a30| 73 6d 61 6c 6c 20 74 6f | 20 61 76 6f 69 64 20 61 |small to| avoid a|
|00002a40| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 20 63 68 61 | signifi|cant cha|
|00002a50| 6e 67 65 20 69 6e 20 74 | 68 65 20 6e 75 6d 62 65 |nge in t|he numbe|
|00002a60| 72 20 6f 66 20 70 69 78 | 65 6c 73 0a 58 64 72 61 |r of pix|els.Xdra|
|00002a70| 77 6e 2e 20 20 54 68 69 | 73 20 6d 65 61 73 75 72 |wn. Thi|s measur|
|00002a80| 65 73 20 74 68 65 20 63 | 6f 73 74 20 6f 66 20 63 |es the c|ost of c|
|00002a90| 6c 69 70 70 69 6e 67 2e | 0a 58 2e 54 50 0a 58 6f |lipping.|.X.TP.Xo|
|00002aa0| 73 0a 58 55 73 65 20 61 | 6e 20 6f 66 66 73 63 72 |s.XUse a|n offscr|
|00002ab0| 65 65 6e 20 70 69 78 65 | 6c 20 6d 61 70 20 69 64 |een pixe|l map id|
|00002ac0| 65 6e 74 69 63 61 6c 20 | 69 6e 20 73 69 7a 65 20 |entical |in size |
|00002ad0| 61 6e 64 20 64 65 70 74 | 68 20 74 6f 20 74 68 65 |and dept|h to the|
|00002ae0| 20 67 72 61 70 68 69 63 | 73 20 77 69 6e 64 6f 77 | graphic|s window|
|00002af0| 0a 58 61 73 20 74 68 65 | 20 73 6f 75 72 63 65 20 |.Xas the| source |
|00002b00| 66 6f 72 20 62 6c 69 74 | 73 2e 20 20 54 68 69 73 |for blit|s. This|
|00002b10| 20 6f 70 74 69 6f 6e 20 | 77 6f 72 6b 73 20 6f 6e | option |works on|
|00002b20| 6c 79 20 69 6e 20 74 68 | 65 20 58 31 31 20 76 65 |ly in th|e X11 ve|
|00002b30| 72 73 69 6f 6e 2e 0a 58 | 2e 54 50 0a 58 6f 64 0a |rsion..X|.TP.Xod.|
|00002b40| 58 55 73 65 20 61 6e 20 | 6f 66 66 73 63 72 65 65 |XUse an |offscree|
|00002b50| 6e 20 70 69 78 65 6c 20 | 6d 61 70 20 69 64 65 6e |n pixel |map iden|
|00002b60| 74 69 63 61 6c 20 69 6e | 20 73 69 7a 65 20 61 6e |tical in| size an|
|00002b70| 64 20 64 65 70 74 68 20 | 74 6f 20 74 68 65 20 67 |d depth |to the g|
|00002b80| 72 61 70 68 69 63 73 20 | 77 69 6e 64 6f 77 0a 58 |raphics |window.X|
|00002b90| 61 73 20 74 68 65 20 64 | 65 73 74 69 6e 61 74 69 |as the d|estinati|
|00002ba0| 6f 6e 20 66 6f 72 20 64 | 72 61 77 69 6e 67 20 6f |on for d|rawing o|
|00002bb0| 70 65 72 61 74 69 6f 6e | 73 2e 20 20 41 66 74 65 |peration|s. Afte|
|00002bc0| 72 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 68 61 |r the co|mmand ha|
|00002bd0| 73 20 62 65 65 6e 0a 58 | 63 6f 6d 70 6c 65 74 65 |s been.X|complete|
|00002be0| 64 20 61 6e 64 20 74 69 | 6d 65 64 2c 20 74 68 65 |d and ti|med, the|
|00002bf0| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 65 | content|s of the|
|00002c00| 20 6f 66 66 73 63 72 65 | 65 6e 20 70 69 78 65 6c | offscre|en pixel|
|00002c10| 20 6d 61 70 20 61 72 65 | 20 62 6c 69 74 74 65 64 | map are| blitted|
|00002c20| 0a 58 69 6e 74 6f 20 74 | 68 65 20 67 72 61 70 68 |.Xinto t|he graph|
|00002c30| 69 63 73 20 77 69 6e 64 | 6f 77 20 73 6f 20 63 6f |ics wind|ow so co|
|00002c40| 72 72 65 63 74 20 64 72 | 61 77 69 6e 67 20 63 61 |rrect dr|awing ca|
|00002c50| 6e 20 62 65 20 76 65 72 | 69 66 69 65 64 2e 20 20 |n be ver|ified. |
|00002c60| 54 68 69 73 20 6f 70 74 | 69 6f 6e 0a 58 77 6f 72 |This opt|ion.Xwor|
|00002c70| 6b 73 20 6f 6e 6c 79 20 | 69 6e 20 74 68 65 20 58 |ks only |in the X|
|00002c80| 31 31 20 76 65 72 73 69 | 6f 6e 2e 20 20 54 6f 67 |11 versi|on. Tog|
|00002c90| 65 74 68 65 72 2c 20 74 | 68 65 20 6f 73 20 61 6e |ether, t|he os an|
|00002ca0| 64 20 6f 64 20 6f 70 74 | 69 6f 6e 73 20 61 6c 6c |d od opt|ions all|
|00002cb0| 6f 77 20 79 6f 75 0a 58 | 74 6f 20 6d 65 61 73 75 |ow you.X|to measu|
|00002cc0| 72 65 20 74 68 65 20 70 | 65 72 66 6f 72 6d 61 6e |re the p|erforman|
|00002cd0| 63 65 20 69 6d 70 61 63 | 74 20 6f 66 20 6f 66 66 |ce impac|t of off|
|00002ce0| 73 63 72 65 65 6e 20 72 | 65 6e 64 65 72 69 6e 67 |screen r|endering|
|00002cf0| 20 61 6e 64 20 74 68 65 | 20 63 6f 73 74 0a 58 6f | and the| cost.Xo|
|00002d00| 66 20 6d 6f 76 69 6e 67 | 20 70 69 78 65 6c 73 20 |f moving| pixels |
|00002d10| 74 6f 20 61 6e 64 20 66 | 72 6f 6d 20 6f 66 66 73 |to and f|rom offs|
|00002d20| 63 72 65 65 6e 20 6d 65 | 6d 6f 72 79 2e 0a 58 2e |creen me|mory..X.|
|00002d30| 54 50 0a 58 70 0a 58 50 | 6f 6c 6c 69 6e 67 2e 20 |TP.Xp.XP|olling. |
|00002d40| 20 55 73 65 64 20 69 6e | 20 63 6f 6e 6a 75 6e 63 | Used in| conjunc|
|00002d50| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 64 20 |tion wit|h the d |
|00002d60| 66 6c 61 67 2c 20 74 68 | 69 73 20 66 6c 61 67 20 |flag, th|is flag |
|00002d70| 73 70 65 63 69 66 69 65 | 73 20 74 68 61 74 0a 58 |specifie|s that.X|
|00002d80| 5c 66 49 67 62 65 6e 63 | 68 5c 66 50 20 73 68 6f |\fIgbenc|h\fP sho|
|00002d90| 75 6c 64 20 6c 6f 6f 70 | 20 63 6f 6e 74 69 6e 75 |uld loop| continu|
|00002da0| 6f 75 73 6c 79 2c 20 72 | 65 61 64 69 6e 67 20 74 |ously, r|eading t|
|00002db0| 68 65 20 6d 6f 75 73 65 | 20 70 6f 73 69 74 69 6f |he mouse| positio|
|00002dc0| 6e 20 61 6e 64 0a 58 70 | 65 72 66 6f 72 6d 69 6e |n and.Xp|erformin|
|00002dd0| 67 20 61 20 64 72 61 77 | 69 6e 67 20 69 74 65 72 |g a draw|ing iter|
|00002de0| 61 74 69 6f 6e 2c 20 72 | 61 74 68 65 72 20 74 68 |ation, r|ather th|
|00002df0| 61 6e 20 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |an respo|nding to|
|00002e00| 20 6d 6f 75 73 65 20 6d | 6f 74 69 6f 6e 0a 58 65 | mouse m|otion.Xe|
|00002e10| 76 65 6e 74 73 2e 20 20 | 54 68 69 73 20 6d 65 61 |vents. |This mea|
|00002e20| 73 75 72 65 73 20 74 68 | 65 20 70 65 72 66 6f 72 |sures th|e perfor|
|00002e30| 6d 61 6e 63 65 20 64 69 | 66 66 65 72 65 6e 63 65 |mance di|fference|
|00002e40| 20 62 65 74 77 65 65 6e | 20 70 6f 6c 6c 69 6e 67 | between| polling|
|00002e50| 20 61 6e 64 0a 58 65 76 | 65 6e 74 2d 64 72 69 76 | and.Xev|ent-driv|
|00002e60| 65 6e 20 69 6e 70 75 74 | 2e 0a 58 2e 54 50 0a 58 |en input|..X.TP.X|
|00002e70| 70 73 0a 58 50 6f 6c 79 | 67 6f 6e 20 73 65 6c 66 |ps.XPoly|gon self|
|00002e80| 2d 69 6e 74 65 72 73 65 | 63 74 69 6e 67 2e 20 20 |-interse|cting. |
|00002e90| 44 72 61 77 20 61 20 70 | 6f 6c 79 67 6f 6e 20 77 |Draw a p|olygon w|
|00002ea0| 69 74 68 20 74 68 65 20 | 73 61 6d 65 20 76 65 72 |ith the |same ver|
|00002eb0| 74 69 63 65 73 20 61 6e | 64 20 6e 75 6d 62 65 72 |tices an|d number|
|00002ec0| 0a 58 6f 66 20 65 64 67 | 65 73 20 61 73 20 75 73 |.Xof edg|es as us|
|00002ed0| 75 61 6c 2c 20 62 75 74 | 20 73 65 6c 66 2d 69 6e |ual, but| self-in|
|00002ee0| 74 65 72 73 65 63 74 69 | 6e 67 2e 20 20 5c 66 49 |tersecti|ng. \fI|
|00002ef0| 6e 76 65 72 74 5c 66 50 | 20 77 69 6c 6c 20 62 65 |nvert\fP| will be|
|00002f00| 20 72 6f 75 6e 64 65 64 | 20 75 70 0a 58 74 6f 20 | rounded| up.Xto |
|00002f10| 61 6e 20 6f 64 64 20 6e | 75 6d 62 65 72 20 69 66 |an odd n|umber if|
|00002f20| 20 6e 65 63 65 73 73 61 | 72 79 2e 0a 58 2e 54 50 | necessa|ry..X.TP|
|00002f30| 0a 58 70 77 0a 58 46 69 | 6c 6c 20 70 6f 6c 79 67 |.Xpw.XFi|ll polyg|
|00002f40| 6f 6e 73 20 75 73 69 6e | 67 20 74 68 65 20 6e 6f |ons usin|g the no|
|00002f50| 6e 2d 7a 65 72 6f 20 77 | 69 6e 64 69 6e 67 20 6e |n-zero w|inding n|
|00002f60| 75 6d 62 65 72 20 72 75 | 6c 65 20 72 61 74 68 65 |umber ru|le rathe|
|00002f70| 72 20 74 68 61 6e 20 74 | 68 65 0a 58 64 65 66 61 |r than t|he.Xdefa|
|00002f80| 75 6c 74 20 65 76 65 6e | 2d 6f 64 64 20 72 75 6c |ult even|-odd rul|
|00002f90| 65 2e 20 20 54 68 69 73 | 20 6f 70 74 69 6f 6e 20 |e. This| option |
|00002fa0| 77 6f 72 6b 73 20 6f 6e | 6c 79 20 69 6e 20 74 68 |works on|ly in th|
|00002fb0| 65 20 58 31 31 20 76 65 | 72 73 69 6f 6e 2e 0a 58 |e X11 ve|rsion..X|
|00002fc0| 2e 54 50 0a 58 72 0a 58 | 52 65 73 65 74 20 64 65 |.TP.Xr.X|Reset de|
|00002fd0| 66 61 75 6c 74 73 2e 20 | 20 43 6f 70 79 20 74 68 |faults. | Copy th|
|00002fe0| 65 20 73 65 74 20 6f 66 | 20 70 61 72 61 6d 65 74 |e set of| paramet|
|00002ff0| 65 72 73 20 75 73 65 64 | 20 69 6e 20 74 68 69 73 |ers used| in this|
|00003000| 20 63 6f 6d 6d 61 6e 64 | 20 74 6f 20 74 68 65 0a | command| to the.|
|00003010| 58 73 65 74 20 6f 66 20 | 67 6c 6f 62 61 6c 20 64 |Xset of |global d|
|00003020| 65 66 61 75 6c 74 73 2e | 0a 58 2e 54 50 0a 58 73 |efaults.|.X.TP.Xs|
|00003030| 0a 58 55 73 65 20 61 20 | 73 74 69 70 70 6c 65 20 |.XUse a |stipple |
|00003040| 70 61 74 74 65 72 6e 20 | 77 68 65 6e 20 64 72 61 |pattern |when dra|
|00003050| 77 69 6e 67 2e 20 20 54 | 68 65 20 73 74 69 70 70 |wing. T|he stipp|
|00003060| 6c 65 20 70 61 74 74 65 | 72 6e 20 69 73 20 61 20 |le patte|rn is a |
|00003070| 62 69 74 6d 61 70 20 74 | 68 61 74 20 69 73 0a 58 |bitmap t|hat is.X|
|00003080| 74 65 73 73 65 6c 6c 61 | 74 65 64 20 6f 76 65 72 |tessella|ted over|
|00003090| 20 74 68 65 20 64 72 61 | 77 69 6e 67 20 61 72 65 | the dra|wing are|
|000030a0| 61 2e 20 20 57 68 65 6e | 20 61 20 64 72 61 77 69 |a. When| a drawi|
|000030b0| 6e 67 20 6f 70 65 72 61 | 74 69 6f 6e 20 69 73 20 |ng opera|tion is |
|000030c0| 70 65 72 66 6f 72 6d 65 | 64 2c 0a 58 74 68 65 20 |performe|d,.Xthe |
|000030d0| 6f 6e 6c 79 20 70 69 78 | 65 6c 73 20 74 68 61 74 |only pix|els that|
|000030e0| 20 61 72 65 20 61 63 74 | 75 61 6c 6c 79 20 64 72 | are act|ually dr|
|000030f0| 61 77 6e 20 61 72 65 20 | 74 68 6f 73 65 20 69 6e |awn are |those in|
|00003100| 73 69 64 65 20 74 68 65 | 20 73 68 61 70 65 20 62 |side the| shape b|
|00003110| 65 69 6e 67 0a 58 64 72 | 61 77 6e 20 74 68 61 74 |eing.Xdr|awn that|
|00003120| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 61 | corresp|ond to a|
|00003130| 20 27 31 27 20 69 6e 20 | 74 68 65 20 73 74 69 70 | '1' in |the stip|
|00003140| 70 6c 65 20 70 61 74 74 | 65 72 6e 2e 20 20 54 68 |ple patt|ern. Th|
|00003150| 65 73 65 20 70 69 78 65 | 6c 73 20 61 72 65 0a 58 |ese pixe|ls are.X|
|00003160| 64 72 61 77 6e 20 69 6e | 20 74 68 65 20 66 6f 72 |drawn in| the for|
|00003170| 65 67 72 6f 75 6e 64 20 | 63 6f 6c 6f 72 2e 20 20 |eground |color. |
|00003180| 53 74 69 70 70 6c 69 6e | 67 20 69 73 20 66 75 6c |Stipplin|g is ful|
|00003190| 6c 79 20 73 75 70 70 6f | 72 74 65 64 20 6f 6e 6c |ly suppo|rted onl|
|000031a0| 79 20 69 6e 20 74 68 65 | 20 58 31 31 0a 58 76 65 |y in the| X11.Xve|
|000031b0| 72 73 69 6f 6e 2e 0a 58 | 2e 54 50 0a 58 74 0a 58 |rsion..X|.TP.Xt.X|
|000031c0| 55 73 65 20 61 20 74 69 | 6c 65 20 77 68 65 6e 20 |Use a ti|le when |
|000031d0| 64 72 61 77 69 6e 67 2e | 20 20 54 68 65 20 74 69 |drawing.| The ti|
|000031e0| 6c 65 20 69 73 20 61 20 | 70 69 78 65 6c 20 6d 61 |le is a |pixel ma|
|000031f0| 70 20 74 68 61 74 20 69 | 73 20 74 65 73 73 65 6c |p that i|s tessel|
|00003200| 6c 61 74 65 64 20 6f 76 | 65 72 0a 58 74 68 65 20 |lated ov|er.Xthe |
|00003210| 64 72 61 77 69 6e 67 20 | 61 72 65 61 2e 20 20 57 |drawing |area. W|
|00003220| 68 65 6e 20 61 20 64 72 | 61 77 69 6e 67 20 6f 70 |hen a dr|awing op|
|00003230| 65 72 61 74 69 6f 6e 20 | 69 73 20 70 65 72 66 6f |eration |is perfo|
|00003240| 72 6d 65 64 2c 20 74 68 | 65 20 70 69 78 65 6c 20 |rmed, th|e pixel |
|00003250| 76 61 6c 75 65 0a 58 66 | 6f 72 20 65 61 63 68 20 |value.Xf|or each |
|00003260| 70 69 78 65 6c 20 69 6e | 73 69 64 65 20 74 68 65 |pixel in|side the|
|00003270| 20 73 68 61 70 65 20 62 | 65 69 6e 67 20 64 72 61 | shape b|eing dra|
|00003280| 77 6e 20 69 73 20 6f 62 | 74 61 69 6e 65 64 20 66 |wn is ob|tained f|
|00003290| 72 6f 6d 20 74 68 65 20 | 74 69 6c 65 2e 0a 58 57 |rom the |tile..XW|
|000032a0| 68 65 6e 20 74 68 65 20 | 73 20 61 6e 64 20 74 20 |hen the |s and t |
|000032b0| 66 6c 61 67 73 20 61 72 | 65 20 75 73 65 64 20 73 |flags ar|e used s|
|000032c0| 69 6d 75 6c 74 61 6e 65 | 6f 75 73 6c 79 2c 20 74 |imultane|ously, t|
|000032d0| 68 65 20 73 74 69 70 70 | 6c 65 20 70 61 74 74 65 |he stipp|le patte|
|000032e0| 72 6e 20 69 73 20 75 73 | 65 64 0a 58 61 73 20 61 |rn is us|ed.Xas a|
|000032f0| 20 74 69 6c 65 2c 20 77 | 69 74 68 20 27 30 27 20 | tile, w|ith '0' |
|00003300| 70 69 78 65 6c 73 20 69 | 6e 20 74 68 65 20 73 74 |pixels i|n the st|
|00003310| 69 70 70 6c 65 20 70 61 | 74 74 65 72 6e 20 73 65 |ipple pa|ttern se|
|00003320| 6c 65 63 74 69 6e 67 20 | 74 68 65 20 62 61 63 6b |lecting |the back|
|00003330| 67 72 6f 75 6e 64 0a 58 | 63 6f 6c 6f 72 20 61 6e |ground.X|color an|
|00003340| 64 20 27 31 27 20 70 69 | 78 65 6c 73 20 73 65 6c |d '1' pi|xels sel|
|00003350| 65 63 74 69 6e 67 20 74 | 68 65 20 66 6f 72 65 67 |ecting t|he foreg|
|00003360| 72 6f 75 6e 64 20 63 6f | 6c 6f 72 2e 20 20 54 68 |round co|lor. Th|
|00003370| 69 73 20 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 20 77 |is combi|nation w|
|00003380| 6f 72 6b 73 0a 58 6f 6e | 6c 79 20 69 6e 20 74 68 |orks.Xon|ly in th|
|00003390| 65 20 58 31 31 20 76 65 | 72 73 69 6f 6e 2e 0a 58 |e X11 ve|rsion..X|
|000033a0| 2e 54 50 0a 58 75 0a 58 | 55 6e 62 61 74 63 68 65 |.TP.Xu.X|Unbatche|
|000033b0| 64 2e 20 20 4e 6f 72 6d | 61 6c 6c 79 20 74 68 65 |d. Norm|ally the|
|000033c0| 20 77 69 6e 64 6f 77 20 | 73 79 73 74 65 6d 20 63 | window |system c|
|000033d0| 6c 69 65 6e 74 20 6c 69 | 62 72 61 72 79 20 77 69 |lient li|brary wi|
|000033e0| 6c 6c 20 62 61 74 63 68 | 20 6d 61 6e 79 0a 58 72 |ll batch| many.Xr|
|000033f0| 65 71 75 65 73 74 73 20 | 69 6e 74 6f 20 61 20 73 |equests |into a s|
|00003400| 69 6e 67 6c 65 20 6d 65 | 73 73 61 67 65 20 74 6f |ingle me|ssage to|
|00003410| 20 74 68 65 20 77 69 6e | 64 6f 77 20 73 65 72 76 | the win|dow serv|
|00003420| 65 72 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 6d |er in or|der to m|
|00003430| 69 6e 69 6d 69 7a 65 0a | 58 63 6f 6d 6d 75 6e 69 |inimize.|Xcommuni|
|00003440| 63 61 74 69 6f 6e 20 6f | 76 65 72 68 65 61 64 2e |cation o|verhead.|
|00003450| 20 20 54 68 69 73 20 6f | 70 74 69 6f 6e 20 63 61 | This o|ption ca|
|00003460| 75 73 65 73 20 74 68 65 | 20 63 6c 69 65 6e 74 27 |uses the| client'|
|00003470| 73 20 72 65 71 75 65 73 | 74 20 62 75 66 66 65 72 |s reques|t buffer|
|00003480| 0a 58 74 6f 20 62 65 20 | 66 6c 75 73 68 65 64 20 |.Xto be |flushed |
|00003490| 61 66 74 65 72 20 65 61 | 63 68 20 6f 70 65 72 61 |after ea|ch opera|
|000034a0| 74 69 6f 6e 2c 20 74 68 | 65 72 65 62 79 20 70 72 |tion, th|ereby pr|
|000034b0| 65 76 65 6e 74 69 6e 67 | 20 62 61 74 63 68 69 6e |eventing| batchin|
|000034c0| 67 2e 20 20 54 68 69 73 | 0a 58 6d 61 6b 65 73 20 |g. This|.Xmakes |
|000034d0| 69 74 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 64 |it possi|ble to d|
|000034e0| 69 72 65 63 74 6c 79 20 | 6d 65 61 73 75 72 65 20 |irectly |measure |
|000034f0| 74 68 65 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 |the perf|ormance |
|00003500| 62 65 6e 65 66 69 74 20 | 6f 66 20 62 61 74 63 68 |benefit |of batch|
|00003510| 69 6e 67 2e 0a 58 2e 50 | 50 0a 58 5c 66 42 47 6c |ing..X.P|P.X\fBGl|
|00003520| 6f 62 61 6c 20 64 65 66 | 61 75 6c 74 73 5c 66 50 |obal def|aults\fP|
|00003530| 0a 58 2e 50 50 0a 58 54 | 68 65 20 66 6f 6c 6c 6f |.X.PP.XT|he follo|
|00003540| 77 69 6e 67 20 67 6c 6f | 62 61 6c 20 64 65 66 61 |wing glo|bal defa|
|00003550| 75 6c 74 73 20 6d 61 79 | 20 62 65 20 64 69 73 70 |ults may| be disp|
|00003560| 6c 61 79 65 64 20 61 6e | 64 20 73 65 74 20 75 73 |layed an|d set us|
|00003570| 69 6e 67 20 74 68 65 20 | 27 64 65 66 61 75 6c 74 |ing the |'default|
|00003580| 73 27 0a 58 63 6f 6d 6d | 61 6e 64 3a 0a 58 2e 54 |s'.Xcomm|and:.X.T|
|00003590| 50 20 38 0a 58 74 69 6d | 65 67 6f 61 6c 0a 58 57 |P 8.Xtim|egoal.XW|
|000035a0| 68 65 6e 20 61 20 63 6f | 6d 6d 61 6e 64 20 69 73 |hen a co|mmand is|
|000035b0| 20 65 78 65 63 75 74 65 | 64 2c 20 5c 66 49 67 62 | execute|d, \fIgb|
|000035c0| 65 6e 63 68 5c 66 50 20 | 73 68 6f 75 6c 64 20 72 |ench\fP |should r|
|000035d0| 65 70 65 61 74 20 74 68 | 65 20 64 72 61 77 69 6e |epeat th|e drawin|
|000035e0| 67 0a 58 6f 70 65 72 61 | 74 69 6f 6e 20 75 6e 64 |g.Xopera|tion und|
|000035f0| 65 72 20 74 65 73 74 20 | 65 6e 6f 75 67 68 20 74 |er test |enough t|
|00003600| 69 6d 65 73 20 74 6f 20 | 67 65 74 20 61 6e 20 61 |imes to |get an a|
|00003610| 63 63 75 72 61 74 65 20 | 6d 65 61 73 75 72 65 6d |ccurate |measurem|
|00003620| 65 6e 74 20 6f 66 20 69 | 74 73 0a 58 63 6f 73 74 |ent of i|ts.Xcost|
|00003630| 2c 20 62 75 74 20 6e 6f | 74 20 73 6f 20 6d 61 6e |, but no|t so man|
|00003640| 79 20 74 69 6d 65 73 20 | 74 68 61 74 20 74 68 65 |y times |that the|
|00003650| 20 63 6f 6d 6d 61 6e 64 | 20 74 61 6b 65 73 20 61 | command| takes a|
|00003660| 6e 20 69 6e 6f 72 64 69 | 6e 61 74 65 20 61 6d 6f |n inordi|nate amo|
|00003670| 75 6e 74 20 6f 66 0a 58 | 74 69 6d 65 20 74 6f 20 |unt of.X|time to |
|00003680| 65 78 65 63 75 74 65 2e | 20 20 5c 66 49 67 62 65 |execute.| \fIgbe|
|00003690| 6e 63 68 5c 66 50 20 61 | 6c 6c 6f 77 73 20 79 6f |nch\fP a|llows yo|
|000036a0| 75 20 74 6f 20 73 70 65 | 63 69 66 79 20 61 20 74 |u to spe|cify a t|
|000036b0| 69 6d 65 20 67 6f 61 6c | 2c 20 77 68 69 63 68 0a |ime goal|, which.|
|000036c0| 58 69 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |Xis the |number o|
|000036d0| 66 20 73 65 63 6f 6e 64 | 73 20 74 68 61 74 20 65 |f second|s that e|
|000036e0| 61 63 68 20 63 6f 6d 6d | 61 6e 64 20 73 68 6f 75 |ach comm|and shou|
|000036f0| 6c 64 20 74 61 6b 65 20 | 74 6f 20 65 78 65 63 75 |ld take |to execu|
|00003700| 74 65 20 28 64 65 66 61 | 75 6c 74 3a 0a 58 31 29 |te (defa|ult:.X1)|
|00003710| 2e 20 20 5c 66 49 67 62 | 65 6e 63 68 5c 66 50 20 |. \fIgb|ench\fP |
|00003720| 70 65 72 66 6f 72 6d 73 | 20 61 73 20 6d 61 6e 79 |performs| as many|
|00003730| 20 69 74 65 72 61 74 69 | 6f 6e 73 20 61 73 20 61 | iterati|ons as a|
|00003740| 72 65 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 20 |re neces|sary to |
|00003750| 72 65 61 63 68 0a 58 74 | 68 69 73 20 67 6f 61 6c |reach.Xt|his goal|
|00003760| 2e 20 20 53 65 74 74 69 | 6e 67 20 74 69 6d 65 67 |. Setti|ng timeg|
|00003770| 6f 61 6c 20 74 6f 20 30 | 20 66 6f 72 63 65 73 20 |oal to 0| forces |
|00003780| 5c 66 49 67 62 65 6e 63 | 68 5c 66 50 20 74 6f 20 |\fIgbenc|h\fP to |
|00003790| 65 78 65 63 75 74 65 20 | 61 0a 58 73 69 6e 67 6c |execute |a.Xsingl|
|000037a0| 65 20 69 74 65 72 61 74 | 69 6f 6e 2e 0a 58 2e 54 |e iterat|ion..X.T|
|000037b0| 50 0a 58 63 6f 75 6e 74 | 0a 58 53 70 65 63 69 66 |P.Xcount|.XSpecif|
|000037c0| 69 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ies the |number o|
|000037d0| 66 20 74 69 6d 65 73 20 | 74 6f 20 70 65 72 66 6f |f times |to perfo|
|000037e0| 72 6d 20 74 68 65 20 70 | 72 69 6d 69 74 69 76 65 |rm the p|rimitive|
|000037f0| 20 64 72 61 77 69 6e 67 | 20 6f 70 65 72 61 74 69 | drawing| operati|
|00003800| 6f 6e 0a 58 6f 6e 20 5c | 66 49 65 61 63 68 5c 66 |on.Xon \|fIeach\f|
|00003810| 50 20 69 74 65 72 61 74 | 69 6f 6e 2e 20 20 54 68 |P iterat|ion. Th|
|00003820| 69 73 20 64 65 66 69 6e | 65 73 20 74 68 65 20 75 |is defin|es the u|
|00003830| 6e 69 74 20 6f 66 20 77 | 6f 72 6b 20 62 65 69 6e |nit of w|ork bein|
|00003840| 67 20 6d 65 61 73 75 72 | 65 64 2e 0a 58 46 6f 72 |g measur|ed..XFor|
|00003850| 20 65 78 61 6d 70 6c 65 | 2c 20 74 6f 20 6d 65 61 | example|, to mea|
|00003860| 73 75 72 65 20 74 68 65 | 20 74 69 6d 65 20 69 74 |sure the| time it|
|00003870| 20 74 61 6b 65 73 20 74 | 6f 20 64 72 61 77 20 61 | takes t|o draw a|
|00003880| 20 31 30 30 30 2d 70 6f | 6c 79 67 6f 6e 20 6f 62 | 1000-po|lygon ob|
|00003890| 6a 65 63 74 2c 0a 58 67 | 69 76 65 20 74 68 65 20 |ject,.Xg|ive the |
|000038a0| 63 6f 6d 6d 61 6e 64 20 | 27 70 20 63 6f 75 6e 74 |command |'p count|
|000038b0| 3d 31 30 30 30 27 20 61 | 6e 64 20 5c 66 49 67 62 |=1000' a|nd \fIgb|
|000038c0| 65 6e 63 68 5c 66 50 20 | 77 69 6c 6c 20 72 65 70 |ench\fP |will rep|
|000038d0| 65 61 74 65 64 6c 79 20 | 64 72 61 77 0a 58 31 30 |eatedly |draw.X10|
|000038e0| 30 30 20 70 6f 6c 79 67 | 6f 6e 73 2e 20 20 54 6f |00 polyg|ons. To|
|000038f0| 20 67 65 74 20 74 68 65 | 20 66 65 65 6c 20 6f 66 | get the| feel of|
|00003900| 20 64 72 61 67 67 69 6e | 67 20 61 72 6f 75 6e 64 | draggin|g around|
|00003910| 20 61 20 31 30 30 30 2d | 70 6f 6c 79 67 6f 6e 20 | a 1000-|polygon |
|00003920| 6f 62 6a 65 63 74 2c 0a | 58 67 69 76 65 20 74 68 |object,.|Xgive th|
|00003930| 65 20 63 6f 6d 6d 61 6e | 64 20 27 70 20 64 20 63 |e comman|d 'p d c|
|00003940| 6f 75 6e 74 3d 31 30 30 | 30 27 20 61 6e 64 20 5c |ount=100|0' and \|
|00003950| 66 49 67 62 65 6e 63 68 | 5c 66 50 20 77 69 6c 6c |fIgbench|\fP will|
|00003960| 20 64 72 61 77 20 31 30 | 30 30 20 70 6f 6c 79 67 | draw 10|00 polyg|
|00003970| 6f 6e 73 0a 58 65 76 65 | 72 79 20 74 69 6d 65 20 |ons.Xeve|ry time |
|00003980| 74 68 65 20 6d 6f 75 73 | 65 20 6d 6f 76 65 73 2e |the mous|e moves.|
|00003990| 20 20 49 66 20 79 6f 75 | 20 77 61 6e 74 20 65 78 | If you| want ex|
|000039a0| 61 63 74 20 63 6f 6e 74 | 72 6f 6c 20 6f 76 65 72 |act cont|rol over|
|000039b0| 20 74 68 65 20 6e 75 6d | 62 65 72 0a 58 6f 66 20 | the num|ber.Xof |
|000039c0| 64 72 61 77 69 6e 67 20 | 6f 70 65 72 61 74 69 6f |drawing |operatio|
|000039d0| 6e 73 20 65 78 65 63 75 | 74 65 64 20 66 6f 72 20 |ns execu|ted for |
|000039e0| 65 61 63 68 20 63 6f 6d | 6d 61 6e 64 2c 20 73 65 |each com|mand, se|
|000039f0| 74 20 5c 66 49 74 69 6d | 65 67 6f 61 6c 5c 66 50 |t \fItim|egoal\fP|
|00003a00| 20 74 6f 20 30 0a 58 61 | 6e 64 20 73 65 74 20 5c | to 0.Xa|nd set \|
|00003a10| 66 49 63 6f 75 6e 74 5c | 66 50 20 61 73 20 64 65 |fIcount\|fP as de|
|00003a20| 73 69 72 65 64 2e 0a 58 | 2e 54 50 0a 58 61 6e 67 |sired..X|.TP.Xang|
|00003a30| 6c 65 0a 58 54 68 65 20 | 61 6e 67 6c 65 20 69 6e |le.XThe |angle in|
|00003a40| 20 64 65 67 72 65 65 73 | 20 75 73 65 64 20 66 6f | degrees| used fo|
|00003a50| 72 20 74 68 65 20 27 61 | 72 63 27 20 61 6e 64 20 |r the 'a|rc' and |
|00003a60| 27 76 65 63 27 20 63 6f | 6d 6d 61 6e 64 73 2e 0a |'vec' co|mmands..|
|00003a70| 58 2e 54 50 0a 58 61 73 | 70 65 63 74 0a 58 41 20 |X.TP.Xas|pect.XA |
|00003a80| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 76 |floating| point v|
|00003a90| 61 6c 75 65 20 72 65 70 | 72 65 73 65 6e 74 69 6e |alue rep|resentin|
|00003aa0| 67 20 74 68 65 20 68 65 | 69 67 68 74 20 74 6f 20 |g the he|ight to |
|00003ab0| 77 69 64 74 68 20 72 61 | 74 69 6f 20 6f 66 20 74 |width ra|tio of t|
|00003ac0| 68 65 0a 58 62 6f 75 6e | 64 69 6e 67 20 62 6f 78 |he.Xboun|ding box|
|00003ad0| 20 66 6f 72 20 74 68 65 | 20 27 61 72 63 27 20 63 | for the| 'arc' c|
|00003ae0| 6f 6d 6d 61 6e 64 2e 20 | 20 54 68 65 20 64 65 66 |ommand. | The def|
|00003af0| 61 75 6c 74 20 76 61 6c | 75 65 20 69 73 20 31 2e |ault val|ue is 1.|
|00003b00| 30 2c 20 77 68 69 63 68 | 0a 58 79 69 65 6c 64 73 |0, which|.Xyields|
|00003b10| 20 63 69 72 63 75 6c 61 | 72 20 61 72 63 73 2e 0a | circula|r arcs..|
|00003b20| 58 2e 54 50 0a 58 66 6f | 6e 74 0a 58 41 20 63 6f |X.TP.Xfo|nt.XA co|
|00003b30| 6d 6d 61 2d 73 65 70 61 | 72 61 74 65 64 20 6c 69 |mma-sepa|rated li|
|00003b40| 73 74 20 6f 66 20 66 6f | 6e 74 20 6e 61 6d 65 73 |st of fo|nt names|
|00003b50| 20 66 6f 72 20 5c 66 49 | 67 62 65 6e 63 68 5c 66 | for \fI|gbench\f|
|00003b60| 50 20 74 6f 20 6c 6f 61 | 64 2e 0a 58 49 6e 20 74 |P to loa|d..XIn t|
|00003b70| 68 65 20 58 31 31 20 76 | 65 72 73 69 6f 6e 2c 20 |he X11 v|ersion, |
|00003b80| 65 61 63 68 20 6e 61 6d | 65 20 6d 61 79 20 63 6f |each nam|e may co|
|00003b90| 6e 74 61 69 6e 20 74 68 | 65 20 77 69 6c 64 2d 63 |ntain th|e wild-c|
|00003ba0| 61 72 64 20 63 68 61 72 | 61 63 74 65 72 73 20 2a |ard char|acters *|
|00003bb0| 20 61 6e 64 20 3f 2e 0a | 58 41 20 6d 61 78 69 6d | and ?..|XA maxim|
|00003bc0| 75 6d 20 6f 66 20 31 36 | 20 66 6f 6e 74 73 20 6d |um of 16| fonts m|
|00003bd0| 61 79 20 62 65 20 6c 6f | 61 64 65 64 2e 0a 58 2e |ay be lo|aded..X.|
|00003be0| 54 50 0a 58 70 74 73 69 | 7a 65 0a 58 54 68 65 20 |TP.Xptsi|ze.XThe |
|00003bf0| 66 6f 6e 74 20 73 69 7a | 65 2c 20 67 69 76 65 6e |font siz|e, given|
|00003c00| 20 69 6e 20 70 6f 69 6e | 74 73 2c 20 75 73 65 64 | in poin|ts, used|
|00003c10| 20 69 6e 20 74 68 65 20 | 27 74 65 78 74 27 20 63 | in the |'text' c|
|00003c20| 6f 6d 6d 61 6e 64 2e 0a | 58 2e 54 50 0a 58 6c 77 |ommand..|X.TP.Xlw|
|00003c30| 69 64 74 68 0a 58 54 68 | 65 20 6c 69 6e 65 20 77 |idth.XTh|e line w|
|00003c40| 69 64 74 68 20 75 73 65 | 64 20 69 6e 20 74 68 65 |idth use|d in the|
|00003c50| 20 64 72 61 77 69 6e 67 | 20 6f 70 65 72 61 74 69 | drawing| operati|
|00003c60| 6f 6e 73 2e 0a 58 2e 54 | 50 0a 58 6d 61 78 73 68 |ons..X.T|P.Xmaxsh|
|00003c70| 69 66 74 0a 58 45 61 63 | 68 20 64 72 61 77 69 6e |ift.XEac|h drawin|
|00003c80| 67 20 6f 70 65 72 61 74 | 69 6f 6e 20 69 73 20 73 |g operat|ion is s|
|00003c90| 68 69 66 74 65 64 20 62 | 79 20 6f 6e 65 20 70 69 |hifted b|y one pi|
|00003ca0| 78 65 6c 20 69 6e 20 78 | 20 61 6e 64 20 79 20 66 |xel in x| and y f|
|00003cb0| 72 6f 6d 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |rom the |previous|
|00003cc0| 0a 58 6f 70 65 72 61 74 | 69 6f 6e 2e 20 20 54 68 |.Xoperat|ion. Th|
|00003cd0| 65 20 73 68 69 66 74 69 | 6e 67 20 67 6f 65 73 20 |e shifti|ng goes |
|00003ce0| 62 61 63 6b 20 61 6e 64 | 20 66 6f 72 74 68 20 6f |back and| forth o|
|00003cf0| 76 65 72 20 61 20 72 61 | 6e 67 65 20 6f 66 20 5c |ver a ra|nge of \|
|00003d00| 66 49 6d 61 78 73 68 69 | 66 74 5c 66 50 0a 58 70 |fImaxshi|ft\fP.Xp|
|00003d10| 69 78 65 6c 73 2e 0a 58 | 2e 54 50 0a 58 6f 66 66 |ixels..X|.TP.Xoff|
|00003d20| 73 65 74 0a 58 54 68 65 | 20 27 62 6c 69 74 27 20 |set.XThe| 'blit' |
|00003d30| 63 6f 6d 6d 61 6e 64 20 | 6d 75 6c 74 69 70 6c 69 |command |multipli|
|00003d40| 65 73 20 74 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |es the s|ize of t|
|00003d50| 68 65 20 73 71 75 61 72 | 65 20 62 65 69 6e 67 20 |he squar|e being |
|00003d60| 62 6c 69 74 74 65 64 20 | 62 79 20 74 68 69 73 0a |blitted |by this.|
|00003d70| 58 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 |Xfloatin|g point |
|00003d80| 76 61 6c 75 65 20 74 6f | 20 64 65 74 65 72 6d 69 |value to| determi|
|00003d90| 6e 65 20 68 6f 77 20 66 | 61 72 20 74 6f 20 6d 6f |ne how f|ar to mo|
|00003da0| 76 65 20 69 74 2e 20 20 | 54 68 65 20 64 65 66 61 |ve it. |The defa|
|00003db0| 75 6c 74 20 76 61 6c 75 | 65 0a 58 69 73 20 30 2e |ult valu|e.Xis 0.|
|00003dc0| 35 2c 20 77 68 69 63 68 | 20 63 61 75 73 65 73 20 |5, which| causes |
|00003dd0| 74 68 65 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |the dest|ination |
|00003de0| 73 71 75 61 72 65 20 74 | 6f 20 6f 76 65 72 6c 61 |square t|o overla|
|00003df0| 70 20 74 68 65 20 73 6f | 75 72 63 65 20 73 71 75 |p the so|urce squ|
|00003e00| 61 72 65 2e 0a 58 2e 54 | 50 0a 58 6e 63 68 61 72 |are..X.T|P.Xnchar|
|00003e10| 0a 58 54 68 65 20 6c 65 | 6e 67 74 68 20 69 6e 20 |.XThe le|ngth in |
|00003e20| 63 68 61 72 61 63 74 65 | 72 73 20 6f 66 20 74 68 |characte|rs of th|
|00003e30| 65 20 73 74 72 69 6e 67 | 20 64 72 61 77 6e 20 62 |e string| drawn b|
|00003e40| 79 20 74 68 65 20 27 74 | 65 78 74 27 20 63 6f 6d |y the 't|ext' com|
|00003e50| 6d 61 6e 64 2e 0a 58 2e | 54 50 0a 58 6e 77 69 6e |mand..X.|TP.Xnwin|
|00003e60| 0a 58 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |.XThe nu|mber of |
|00003e70| 77 69 6e 64 6f 77 73 20 | 6d 61 70 70 65 64 20 62 |windows |mapped b|
|00003e80| 79 20 74 68 65 20 27 6d | 61 70 27 20 63 6f 6d 6d |y the 'm|ap' comm|
|00003e90| 61 6e 64 2e 0a 58 2e 54 | 50 0a 58 6e 76 65 72 74 |and..X.T|P.Xnvert|
|00003ea0| 0a 58 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |.XThe nu|mber of |
|00003eb0| 76 65 72 74 69 63 65 73 | 20 64 72 61 77 6e 20 62 |vertices| drawn b|
|00003ec0| 79 20 74 68 65 20 27 70 | 6f 6c 79 27 20 63 6f 6d |y the 'p|oly' com|
|00003ed0| 6d 61 6e 64 2e 0a 58 2e | 54 50 0a 58 6f 70 74 73 |mand..X.|TP.Xopts|
|00003ee0| 0a 58 54 68 65 20 6f 70 | 74 69 6f 6e 20 6c 69 73 |.XThe op|tion lis|
|00003ef0| 74 20 74 68 61 74 20 69 | 73 20 70 72 65 70 65 6e |t that i|s prepen|
|00003f00| 64 65 64 20 74 6f 20 74 | 68 65 20 6f 70 74 69 6f |ded to t|he optio|
|00003f10| 6e 20 6c 69 73 74 20 74 | 68 61 74 20 69 73 20 67 |n list t|hat is g|
|00003f20| 69 76 65 6e 20 61 73 0a | 58 74 68 65 20 66 69 72 |iven as.|Xthe fir|
|00003f30| 73 74 20 70 6f 73 69 74 | 69 6f 6e 61 6c 20 70 61 |st posit|ional pa|
|00003f40| 72 61 6d 65 74 65 72 20 | 6f 66 20 61 20 63 6f 6d |rameter |of a com|
|00003f50| 6d 61 6e 64 2e 20 20 49 | 74 20 63 61 6e 20 62 65 |mand. I|t can be|
|00003f60| 20 75 73 65 64 20 74 6f | 20 72 75 6e 20 73 63 72 | used to| run scr|
|00003f70| 69 70 74 73 0a 58 28 69 | 6e 63 6c 75 64 69 6e 67 |ipts.X(i|ncluding|
|00003f80| 20 74 68 65 20 62 75 69 | 6c 74 2d 69 6e 20 73 63 | the bui|lt-in sc|
|00003f90| 72 69 70 74 29 20 77 69 | 74 68 20 64 69 66 66 65 |ript) wi|th diffe|
|00003fa0| 72 65 6e 74 20 6c 69 73 | 74 73 20 6f 66 20 6f 70 |rent lis|ts of op|
|00003fb0| 74 69 6f 6e 73 2e 0a 58 | 2e 54 50 0a 58 6f 75 74 |tions..X|.TP.Xout|
|00003fc0| 66 69 6c 65 0a 58 54 68 | 65 20 6e 61 6d 65 20 6f |file.XTh|e name o|
|00003fd0| 66 20 74 68 65 20 66 69 | 6c 65 20 74 68 61 74 20 |f the fi|le that |
|00003fe0| 6f 75 74 70 75 74 20 69 | 73 20 61 70 70 65 6e 64 |output i|s append|
|00003ff0| 65 64 20 74 6f 20 28 64 | 65 66 61 75 6c 74 3a 20 |ed to (d|efault: |
|00004000| 20 73 74 61 6e 64 61 72 | 64 20 6f 75 74 70 75 74 | standar|d output|
|00004010| 29 2e 0a 58 2e 54 50 0a | 58 73 69 7a 65 0a 58 54 |)..X.TP.|Xsize.XT|
|00004020| 68 65 20 73 69 7a 65 20 | 69 6e 20 70 69 78 65 6c |he size |in pixel|
|00004030| 73 20 6f 66 20 74 68 65 | 20 6f 62 6a 65 63 74 73 |s of the| objects|
|00004040| 20 64 72 61 77 6e 20 62 | 79 20 74 68 65 20 76 61 | drawn b|y the va|
|00004050| 72 69 6f 75 73 20 64 72 | 61 77 69 6e 67 20 63 6f |rious dr|awing co|
|00004060| 6d 6d 61 6e 64 73 2e 0a | 58 2e 54 50 0a 58 74 61 |mmands..|X.TP.Xta|
|00004070| 67 0a 58 41 6e 20 75 6e | 69 6e 74 65 72 70 72 65 |g.XAn un|interpre|
|00004080| 74 65 64 20 73 74 72 69 | 6e 67 20 74 68 61 74 20 |ted stri|ng that |
|00004090| 69 73 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 74 |is inclu|ded in t|
|000040a0| 68 65 20 6f 75 74 70 75 | 74 20 6f 66 20 74 68 65 |he outpu|t of the|
|000040b0| 20 27 63 6f 6e 66 69 67 | 27 0a 58 63 6f 6d 6d 61 | 'config|'.Xcomma|
|000040c0| 6e 64 20 61 6e 64 20 61 | 74 20 74 68 65 20 62 65 |nd and a|t the be|
|000040d0| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 65 61 63 68 20 |ginning |of each |
|000040e0| 72 65 73 75 6c 74 20 6c | 69 6e 65 2e 20 20 49 74 |result l|ine. It|
|000040f0| 20 69 73 20 75 73 65 66 | 75 6c 20 66 6f 72 0a 58 | is usef|ul for.X|
|00004100| 61 73 73 6f 63 69 61 74 | 69 6e 67 20 65 61 63 68 |associat|ing each|
|00004110| 20 72 65 73 75 6c 74 20 | 6c 69 6e 65 20 77 69 74 | result |line wit|
|00004120| 68 20 61 20 6e 61 6d 65 | 64 20 63 6f 6e 66 69 67 |h a name|d config|
|00004130| 75 72 61 74 69 6f 6e 20 | 77 68 65 6e 20 61 20 6c |uration |when a l|
|00004140| 6f 67 20 66 69 6c 65 20 | 69 73 0a 58 72 75 6e 20 |og file |is.Xrun |
|00004150| 74 68 72 6f 75 67 68 20 | 5c 66 49 67 62 65 6e 63 |through |\fIgbenc|
|00004160| 68 5c 66 50 20 73 65 76 | 65 72 61 6c 20 74 69 6d |h\fP sev|eral tim|
|00004170| 65 73 20 74 6f 20 61 63 | 63 75 6d 75 6c 61 74 65 |es to ac|cumulate|
|00004180| 20 72 65 73 75 6c 74 20 | 6c 69 6e 65 73 20 66 6f | result |lines fo|
|00004190| 72 0a 58 64 69 66 66 65 | 72 65 6e 74 20 63 6f 6e |r.Xdiffe|rent con|
|000041a0| 66 69 67 75 72 61 74 69 | 6f 6e 73 2e 20 20 46 6f |figurati|ons. Fo|
|000041b0| 72 20 65 78 61 6d 70 6c | 65 3a 0a 58 0a 58 67 62 |r exampl|e:.X.Xgb|
|000041c0| 65 6e 63 68 20 2d 40 64 | 20 74 61 67 3d 63 6f 6e |ench -@d| tag=con|
|000041d0| 66 69 67 6e 61 6d 65 20 | 3c 6f 6c 64 6c 6f 67 20 |figname |<oldlog |
|000041e0| 3e 6e 65 77 6c 6f 67 0a | 58 0a 58 4e 6f 74 65 20 |>newlog.|X.XNote |
|000041f0| 74 68 65 20 75 73 65 20 | 6f 66 20 74 68 65 20 27 |the use |of the '|
|00004200| 40 27 20 6f 6e 20 74 68 | 65 20 27 64 65 66 61 75 |@' on th|e 'defau|
|00004210| 6c 74 73 27 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |lts' com|mand to |
|00004220| 70 72 65 76 65 6e 74 20 | 74 68 65 20 74 61 67 2d |prevent |the tag-|
|00004230| 73 65 74 74 69 6e 67 0a | 58 63 6f 6d 6d 61 6e 64 |setting.|Xcommand|
|00004240| 20 66 72 6f 6d 20 67 6f | 69 6e 67 20 69 6e 74 6f | from go|ing into|
|00004250| 20 74 68 65 20 6c 6f 67 | 2e 20 20 41 20 73 75 67 | the log|. A sug|
|00004260| 67 65 73 74 65 64 20 74 | 61 67 20 66 6f 72 6d 61 |gested t|ag forma|
|00004270| 74 20 69 73 20 61 20 71 | 75 61 64 72 75 70 6c 65 |t is a q|uadruple|
|00004280| 20 6f 66 0a 58 74 68 65 | 20 66 6f 72 6d 0a 58 0a | of.Xthe| form.X.|
|00004290| 58 3c 5c 66 49 72 63 70 | 75 5c 66 50 3e 2e 3c 5c |X<\fIrcp|u\fP>.<\|
|000042a0| 66 49 6c 63 70 75 5c 66 | 50 3e 2e 3c 5c 66 49 77 |fIlcpu\f|P>.<\fIw|
|000042b0| 73 79 73 5c 66 50 3e 2e | 3c 5c 66 49 67 78 73 79 |sys\fP>.|<\fIgxsy|
|000042c0| 73 5c 66 50 3e 0a 58 0a | 58 77 68 65 72 65 20 5c |s\fP>.X.|Xwhere \|
|000042d0| 66 49 72 63 70 75 5c 66 | 50 20 69 73 20 74 68 65 |fIrcpu\f|P is the|
|000042e0| 20 74 79 70 65 20 6f 66 | 20 74 68 65 20 72 65 6d | type of| the rem|
|000042f0| 6f 74 65 20 43 50 55 20 | 72 75 6e 6e 69 6e 67 20 |ote CPU |running |
|00004300| 5c 66 49 67 62 65 6e 63 | 68 5c 66 50 20 28 69 66 |\fIgbenc|h\fP (if|
|00004310| 20 61 6e 79 29 2c 0a 58 | 5c 66 49 6c 63 70 75 5c | any),.X|\fIlcpu\|
|00004320| 66 50 20 69 73 20 74 68 | 65 20 74 79 70 65 20 6f |fP is th|e type o|
|00004330| 66 20 74 68 65 20 6c 6f | 63 61 6c 20 43 50 55 20 |f the lo|cal CPU |
|00004340| 72 75 6e 6e 69 6e 67 20 | 74 68 65 20 77 69 6e 64 |running |the wind|
|00004350| 6f 77 20 73 65 72 76 65 | 72 2c 20 5c 66 49 77 73 |ow serve|r, \fIws|
|00004360| 79 73 5c 66 50 0a 58 69 | 73 20 74 68 65 20 6e 61 |ys\fP.Xi|s the na|
|00004370| 6d 65 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |me of th|e window|
|00004380| 20 73 79 73 74 65 6d 2c | 20 61 6e 64 20 5c 66 49 | system,| and \fI|
|00004390| 67 78 73 79 73 5c 66 50 | 20 69 73 20 74 68 65 20 |gxsys\fP| is the |
|000043a0| 74 79 70 65 20 6f 66 20 | 67 72 61 70 68 69 63 73 |type of |graphics|
|000043b0| 0a 58 68 61 72 64 77 61 | 72 65 20 62 65 69 6e 67 |.Xhardwa|re being|
|000043c0| 20 75 73 65 64 2e 20 20 | 45 61 63 68 20 6f 66 20 | used. |Each of |
|000043d0| 74 68 65 73 65 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |these co|mponents|
|000043e0| 20 63 61 6e 20 62 65 20 | 65 6e 63 6f 64 65 64 20 | can be |encoded |
|000043f0| 69 6e 20 74 77 6f 20 6f | 72 20 74 68 72 65 65 0a |in two o|r three.|
|00004400| 58 63 68 61 72 61 63 74 | 65 72 73 2e 0a 58 2e 54 |Xcharact|ers..X.T|
|00004410| 50 0a 58 77 69 6e 73 69 | 7a 65 0a 58 54 68 65 20 |P.Xwinsi|ze.XThe |
|00004420| 65 64 67 65 20 6c 65 6e | 67 74 68 20 28 69 6e 20 |edge len|gth (in |
|00004430| 70 69 78 65 6c 73 29 20 | 6f 66 20 74 68 65 20 73 |pixels) |of the s|
|00004440| 71 75 61 72 65 20 64 72 | 61 77 69 6e 67 20 77 69 |quare dr|awing wi|
|00004450| 6e 64 6f 77 2e 0a 58 2e | 53 48 20 56 45 52 53 49 |ndow..X.|SH VERSI|
|00004460| 4f 4e 0a 58 54 68 69 73 | 20 64 6f 63 75 6d 65 6e |ON.XThis| documen|
|00004470| 74 61 74 69 6f 6e 20 61 | 70 70 6c 69 65 73 20 74 |tation a|pplies t|
|00004480| 6f 20 56 65 72 73 69 6f | 6e 20 31 2e 30 20 6f 66 |o Versio|n 1.0 of|
|00004490| 20 5c 66 49 67 62 65 6e | 63 68 5c 66 50 2e 0a 58 | \fIgben|ch\fP..X|
|000044a0| 2e 53 48 20 42 55 47 53 | 0a 58 54 68 65 72 65 20 |.SH BUGS|.XThere |
|000044b0| 69 73 20 61 70 70 61 72 | 65 6e 74 6c 79 20 61 20 |is appar|ently a |
|000044c0| 62 75 67 20 69 6e 20 74 | 68 65 20 62 65 74 61 20 |bug in t|he beta |
|000044d0| 72 65 6c 65 61 73 65 20 | 6f 66 20 74 68 65 20 61 |release |of the a|
|000044e0| 77 6d 20 77 69 6e 64 6f | 77 20 6d 61 6e 61 67 65 |wm windo|w manage|
|000044f0| 72 0a 58 66 6f 72 20 58 | 31 31 52 32 20 74 68 61 |r.Xfor X|11R2 tha|
|00004500| 74 20 63 61 75 73 65 73 | 20 74 68 65 20 22 6d 61 |t causes| the "ma|
|00004510| 70 22 20 63 6f 6d 6d 61 | 6e 64 20 74 6f 20 68 61 |p" comma|nd to ha|
|00004520| 6e 67 20 5c 66 49 67 62 | 65 6e 63 68 5c 66 50 2e |ng \fIgb|ench\fP.|
|00004530| 20 20 46 6f 72 20 74 68 | 69 73 0a 58 72 65 61 73 | For th|is.Xreas|
|00004540| 6f 6e 2c 20 77 65 20 68 | 61 76 65 20 72 65 6d 6f |on, we h|ave remo|
|00004550| 76 65 64 20 22 6d 61 70 | 22 20 66 72 6f 6d 20 74 |ved "map|" from t|
|00004560| 68 65 20 64 65 66 61 75 | 6c 74 20 73 63 72 69 70 |he defau|lt scrip|
|00004570| 74 2e 20 20 57 65 20 68 | 61 76 65 20 6e 6f 74 0a |t. We h|ave not.|
|00004580| 58 66 6f 75 6e 64 20 74 | 68 69 73 20 70 72 6f 62 |Xfound t|his prob|
|00004590| 6c 65 6d 20 75 6e 64 65 | 72 20 61 6e 79 20 6f 66 |lem unde|r any of|
|000045a0| 20 74 68 65 20 6f 74 68 | 65 72 20 58 31 31 52 32 | the oth|er X11R2|
|000045b0| 20 77 69 6e 64 6f 77 20 | 6d 61 6e 61 67 65 72 73 | window |managers|
|000045c0| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 0a 58 74 68 65 |, includ|ing.Xthe|
|000045d0| 20 73 74 61 6e 64 61 72 | 64 20 75 77 6d 2e 0a 58 | standar|d uwm..X|
|000045e0| 2e 53 48 20 45 58 54 45 | 4e 53 49 4f 4e 53 0a 58 |.SH EXTE|NSIONS.X|
|000045f0| 44 69 66 66 65 72 65 6e | 74 20 64 72 61 77 61 62 |Differen|t drawab|
|00004600| 6c 65 20 64 65 70 74 68 | 73 20 73 68 6f 75 6c 64 |le depth|s should|
|00004610| 20 62 65 20 73 75 70 70 | 6f 72 74 65 64 2e 20 20 | be supp|orted. |
|00004620| 33 44 20 67 72 61 70 68 | 69 63 73 20 61 6e 64 20 |3D graph|ics and |
|00004630| 69 6d 61 67 65 0a 58 70 | 72 6f 63 65 73 73 69 6e |image.Xp|rocessin|
|00004640| 67 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 73 68 6f |g operat|ions sho|
|00004650| 75 6c 64 20 62 65 20 73 | 75 70 70 6f 72 74 65 64 |uld be s|upported|
|00004660| 20 77 68 65 6e 20 74 68 | 65 79 20 62 65 63 6f 6d | when th|ey becom|
|00004670| 65 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 58 46 69 |e availa|ble..XFi|
|00004680| 6c 74 65 72 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |lters sh|ould be |
|00004690| 77 72 69 74 74 65 6e 20 | 74 6f 20 63 6f 6d 62 69 |written |to combi|
|000046a0| 6e 65 20 61 6e 64 20 66 | 6f 72 6d 61 74 20 72 61 |ne and f|ormat ra|
|000046b0| 77 20 6c 6f 67 20 66 69 | 6c 65 73 2e 0a 58 2e 53 |w log fi|les..X.S|
|000046c0| 48 20 41 55 54 48 4f 52 | 0a 58 5c 66 49 67 62 65 |H AUTHOR|.X\fIgbe|
|000046d0| 6e 63 68 5c 66 50 20 69 | 73 20 62 65 69 6e 67 20 |nch\fP i|s being |
|000046e0| 64 65 76 65 6c 6f 70 65 | 64 20 62 79 20 43 72 61 |develope|d by Cra|
|000046f0| 69 67 20 44 75 6e 77 6f | 6f 64 79 20 61 6e 64 20 |ig Dunwo|ody and |
|00004700| 4d 61 72 6b 20 4c 69 6e | 74 6f 6e 20 61 74 20 53 |Mark Lin|ton at S|
|00004710| 74 61 6e 66 6f 72 64 0a | 58 55 6e 69 76 65 72 73 |tanford.|XUnivers|
|00004720| 69 74 79 27 73 20 43 6f | 6d 70 75 74 65 72 20 53 |ity's Co|mputer S|
|00004730| 79 73 74 65 6d 73 20 4c | 61 62 20 75 6e 64 65 72 |ystems L|ab under|
|00004740| 20 74 68 65 20 51 75 61 | 6e 74 75 6d 20 70 72 6f | the Qua|ntum pro|
|00004750| 6a 65 63 74 2c 20 74 68 | 72 6f 75 67 68 20 61 20 |ject, th|rough a |
|00004760| 67 69 66 74 0a 58 66 72 | 6f 6d 20 44 69 67 69 74 |gift.Xfr|om Digit|
|00004770| 61 6c 20 45 71 75 69 70 | 6d 65 6e 74 20 43 6f 72 |al Equip|ment Cor|
|00004780| 70 6f 72 61 74 69 6f 6e | 2e 0a 58 2e 53 48 20 41 |poration|..X.SH A|
|00004790| 44 44 52 45 53 53 0a 58 | 50 6c 65 61 73 65 20 73 |DDRESS.X|Please s|
|000047a0| 65 6e 64 20 61 6e 79 20 | 63 6f 6d 6d 65 6e 74 73 |end any |comments|
|000047b0| 2c 20 62 75 67 66 69 78 | 65 73 2c 20 73 63 72 69 |, bugfix|es, scri|
|000047c0| 70 74 73 2c 20 6f 72 20 | 72 65 73 75 6c 74 73 20 |pts, or |results |
|000047d0| 74 6f 3a 0a 58 0a 58 49 | 6e 74 65 72 6e 65 74 3a |to:.X.XI|nternet:|
|000047e0| 20 67 62 65 6e 63 68 40 | 6c 75 72 63 68 2e 73 74 | gbench@|lurch.st|
|000047f0| 61 6e 66 6f 72 64 2e 65 | 64 75 0a 58 0a 58 55 53 |anford.e|du.X.XUS|
|00004800| 45 6e 65 74 3a 20 20 20 | 7b 75 63 62 76 61 78 2c |Enet: |{ucbvax,|
|00004810| 64 65 63 76 61 78 7d 21 | 64 65 63 77 72 6c 21 6c |decvax}!|decwrl!l|
|00004820| 75 72 63 68 2e 73 74 61 | 6e 66 6f 72 64 2e 65 64 |urch.sta|nford.ed|
|00004830| 75 21 67 62 65 6e 63 68 | 0a 58 0a 58 2e 53 48 20 |u!gbench|.X.X.SH |
|00004840| 43 4f 50 59 52 49 47 48 | 54 0a 58 20 43 6f 70 79 |COPYRIGH|T.X Copy|
|00004850| 72 69 67 68 74 20 28 63 | 29 20 31 39 38 38 20 62 |right (c|) 1988 b|
|00004860| 79 20 54 68 65 20 42 6f | 61 72 64 20 6f 66 20 54 |y The Bo|ard of T|
|00004870| 72 75 73 74 65 65 73 0a | 58 20 6f 66 20 74 68 65 |rustees.|X of the|
|00004880| 20 4c 65 6c 61 6e 64 20 | 53 74 61 6e 66 6f 72 64 | Leland |Stanford|
|00004890| 20 4a 75 6e 69 6f 72 20 | 55 6e 69 76 65 72 73 69 | Junior |Universi|
|000048a0| 74 79 2e 0a 58 0a 58 20 | 50 65 72 6d 69 73 73 69 |ty..X.X |Permissi|
|000048b0| 6f 6e 20 74 6f 20 75 73 | 65 2c 20 63 6f 70 79 2c |on to us|e, copy,|
|000048c0| 20 6d 6f 64 69 66 79 2c | 20 61 6e 64 20 64 69 73 | modify,| and dis|
|000048d0| 74 72 69 62 75 74 65 20 | 74 68 69 73 0a 58 20 73 |tribute |this.X s|
|000048e0| 6f 66 74 77 61 72 65 20 | 61 6e 64 20 69 74 73 20 |oftware |and its |
|000048f0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |document|ation fo|
|00004900| 72 20 61 6e 79 20 70 75 | 72 70 6f 73 65 20 61 6e |r any pu|rpose an|
|00004910| 64 20 77 69 74 68 6f 75 | 74 0a 58 20 66 65 65 20 |d withou|t.X fee |
|00004920| 69 73 20 68 65 72 65 62 | 79 20 67 72 61 6e 74 65 |is hereb|y grante|
|00004930| 64 2c 20 70 72 6f 76 69 | 64 65 64 20 74 68 61 74 |d, provi|ded that|
|00004940| 20 74 68 65 20 61 62 6f | 76 65 20 63 6f 70 79 72 | the abo|ve copyr|
|00004950| 69 67 68 74 0a 58 20 6e | 6f 74 69 63 65 20 61 70 |ight.X n|otice ap|
|00004960| 70 65 61 72 20 69 6e 20 | 61 6c 6c 20 63 6f 70 69 |pear in |all copi|
|00004970| 65 73 20 61 6e 64 20 74 | 68 61 74 20 62 6f 74 68 |es and t|hat both|
|00004980| 20 74 68 61 74 20 63 6f | 70 79 72 69 67 68 74 0a | that co|pyright.|
|00004990| 58 20 6e 6f 74 69 63 65 | 20 61 6e 64 20 74 68 69 |X notice| and thi|
|000049a0| 73 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6e 6f 74 |s permis|sion not|
|000049b0| 69 63 65 20 61 70 70 65 | 61 72 20 69 6e 20 73 75 |ice appe|ar in su|
|000049c0| 70 70 6f 72 74 69 6e 67 | 0a 58 20 64 6f 63 75 6d |pporting|.X docum|
|000049d0| 65 6e 74 61 74 69 6f 6e | 2c 20 61 6e 64 20 74 68 |entation|, and th|
|000049e0| 61 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 53 |at the n|ame of S|
|000049f0| 74 61 6e 66 6f 72 64 20 | 6e 6f 74 20 62 65 20 75 |tanford |not be u|
|00004a00| 73 65 64 20 69 6e 0a 58 | 20 61 64 76 65 72 74 69 |sed in.X| adverti|
|00004a10| 73 69 6e 67 20 6f 72 20 | 70 75 62 6c 69 63 69 74 |sing or |publicit|
|00004a20| 79 20 70 65 72 74 61 69 | 6e 69 6e 67 20 74 6f 20 |y pertai|ning to |
|00004a30| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 6f 66 20 |distribu|tion of |
|00004a40| 74 68 65 0a 58 20 73 6f | 66 74 77 61 72 65 20 77 |the.X so|ftware w|
|00004a50| 69 74 68 6f 75 74 20 73 | 70 65 63 69 66 69 63 2c |ithout s|pecific,|
|00004a60| 20 77 72 69 74 74 65 6e | 20 70 72 69 6f 72 20 70 | written| prior p|
|00004a70| 65 72 6d 69 73 73 69 6f | 6e 2e 0a 58 0a 58 20 53 |ermissio|n..X.X S|
|00004a80| 74 61 6e 66 6f 72 64 20 | 6d 61 6b 65 73 20 6e 6f |tanford |makes no|
|00004a90| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 73 | represe|ntations|
|00004aa0| 20 61 62 6f 75 74 20 74 | 68 65 20 73 75 69 74 61 | about t|he suita|
|00004ab0| 62 69 6c 69 74 79 20 6f | 66 0a 58 20 74 68 69 73 |bility o|f.X this|
|00004ac0| 20 73 6f 66 74 77 61 72 | 65 20 66 6f 72 20 61 6e | softwar|e for an|
|00004ad0| 79 20 70 75 72 70 6f 73 | 65 2e 20 20 54 68 65 20 |y purpos|e. The |
|00004ae0| 53 6f 66 74 77 61 72 65 | 20 69 73 20 70 72 6f 76 |Software| is prov|
|00004af0| 69 64 65 64 20 22 61 73 | 20 69 73 22 0a 58 20 77 |ided "as| is".X w|
|00004b00| 69 74 68 6f 75 74 20 65 | 78 70 72 65 73 73 20 6f |ithout e|xpress o|
|00004b10| 72 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |r implie|d warran|
|00004b20| 74 79 2e 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |ty..END_|OF_FILE.|
|00004b30| 69 66 20 74 65 73 74 20 | 31 37 38 33 35 20 2d 6e |if test |17835 -n|
|00004b40| 65 20 60 77 63 20 2d 63 | 20 3c 27 67 62 65 6e 63 |e `wc -c| <'gbenc|
|00004b50| 68 2e 6d 61 6e 27 60 3b | 20 74 68 65 6e 0a 20 20 |h.man'`;| then. |
|00004b60| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00004b70| 67 62 65 6e 63 68 2e 6d | 61 6e 27 5c 22 20 75 6e |gbench.m|an'\" un|
|00004b80| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00004b90| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00004ba0| 20 6f 66 20 27 67 62 65 | 6e 63 68 2e 6d 61 6e 27 | of 'gbe|nch.man'|
|00004bb0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00004bc0| 6f 70 73 2e 63 27 20 2d | 61 20 22 24 7b 31 7d 22 |ops.c' -|a "${1}"|
|00004bd0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00004be0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00004bf0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00004c00| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00004c10| 6f 70 73 2e 63 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |ops.c'\"|.else.ec|
|00004c20| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00004c30| 69 6e 67 20 5c 22 27 6f | 70 73 2e 63 27 5c 22 20 |ing \"'o|ps.c'\" |
|00004c40| 5c 28 31 30 37 37 37 20 | 63 68 61 72 61 63 74 65 |\(10777 |characte|
|00004c50| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00004c60| 22 20 3e 27 6f 70 73 2e | 63 27 20 3c 3c 27 45 4e |" >'ops.|c' <<'EN|
|00004c70| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 69 6e 63 |D_OF_FIL|E'.X#inc|
|00004c80| 6c 75 64 65 20 3c 67 62 | 65 6e 63 68 2e 68 3e 0a |lude <gb|ench.h>.|
|00004c90| 58 0a 58 76 6f 69 64 20 | 53 74 61 72 74 41 72 63 |X.Xvoid |StartArc|
|00004ca0| 28 73 70 2c 63 70 29 0a | 58 20 20 20 20 53 74 61 |(sp,cp).|X Sta|
|00004cb0| 74 65 2a 20 20 73 70 3b | 0a 58 20 20 20 20 43 6d |te* sp;|.X Cm|
|00004cc0| 64 2a 20 20 20 20 63 70 | 3b 0a 58 7b 0a 58 20 20 |d* cp|;.X{.X |
|00004cd0| 20 20 64 6f 75 62 6c 65 | 20 20 61 64 6a 75 73 74 | double| adjust|
|00004ce0| 3b 0a 58 20 20 20 20 69 | 6e 74 09 20 20 20 20 61 |;.X i|nt. a|
|00004cf0| 72 65 61 20 3d 20 63 70 | 2d 3e 70 2e 73 69 7a 65 |rea = cp|->p.size|
|00004d00| 2a 63 70 2d 3e 70 2e 73 | 69 7a 65 3b 0a 58 20 20 |*cp->p.s|ize;.X |
|00004d10| 20 20 69 6e 74 09 20 20 | 20 20 6f 72 69 67 69 6e | int. | origin|
|00004d20| 3b 0a 58 20 20 20 20 64 | 6f 75 62 6c 65 20 20 74 |;.X d|ouble t|
|00004d30| 68 65 74 61 3b 0a 58 0a | 58 20 20 20 20 63 70 2d |heta;.X.|X cp-|
|00004d40| 3e 73 69 7a 65 5b 30 5d | 20 3d 20 73 71 72 74 28 |>size[0]| = sqrt(|
|00004d50| 61 72 65 61 2f 63 70 2d | 3e 70 2e 61 73 70 65 63 |area/cp-|>p.aspec|
|00004d60| 74 29 3b 0a 58 20 20 20 | 20 63 70 2d 3e 73 69 7a |t);.X | cp->siz|
|00004d70| 65 5b 31 5d 20 3d 20 73 | 71 72 74 28 61 72 65 61 |e[1] = s|qrt(area|
|00004d80| 2a 63 70 2d 3e 70 2e 61 | 73 70 65 63 74 29 3b 0a |*cp->p.a|spect);.|
|00004d90| 58 20 20 20 20 69 66 20 | 28 63 70 2d 3e 70 2e 61 |X if |(cp->p.a|
|00004da0| 73 70 65 63 74 21 3d 31 | 2e 29 20 7b 0a 58 09 74 |spect!=1|.) {.X.t|
|00004db0| 68 65 74 61 20 3d 20 63 | 70 2d 3e 70 2e 61 6e 67 |heta = c|p->p.ang|
|00004dc0| 6c 65 2a 50 69 2f 31 38 | 30 3b 0a 58 09 69 66 20 |le*Pi/18|0;.X.if |
|00004dd0| 28 74 68 65 74 61 3c 28 | 50 69 2f 32 29 29 20 61 |(theta<(|Pi/2)) a|
|00004de0| 64 6a 75 73 74 20 3d 20 | 30 2e 3b 0a 58 09 65 6c |djust = |0.;.X.el|
|00004df0| 73 65 20 69 66 20 28 74 | 68 65 74 61 3c 28 33 2a |se if (t|heta<(3*|
|00004e00| 50 69 2f 32 29 29 20 61 | 64 6a 75 73 74 20 3d 20 |Pi/2)) a|djust = |
|00004e10| 50 69 3b 0a 58 09 65 6c | 73 65 20 61 64 6a 75 73 |Pi;.X.el|se adjus|
|00004e20| 74 20 3d 20 32 2a 50 69 | 3b 0a 58 09 74 68 65 74 |t = 2*Pi|;.X.thet|
|00004e30| 61 20 3d 20 61 74 61 6e | 28 74 61 6e 28 74 68 65 |a = atan|(tan(the|
|00004e40| 74 61 29 2f 63 70 2d 3e | 70 2e 61 73 70 65 63 74 |ta)/cp->|p.aspect|
|00004e50| 29 2b 61 64 6a 75 73 74 | 3b 0a 58 09 63 70 2d 3e |)+adjust|;.X.cp->|
|00004e60| 73 69 7a 65 5b 32 5d 20 | 3d 20 74 68 65 74 61 2a |size[2] |= theta*|
|00004e70| 31 38 30 2f 50 69 2a 36 | 34 3b 0a 58 20 20 20 20 |180/Pi*6|4;.X |
|00004e80| 7d 0a 58 20 20 20 20 65 | 6c 73 65 20 63 70 2d 3e |}.X e|lse cp->|
|00004e90| 73 69 7a 65 5b 32 5d 20 | 3d 20 63 70 2d 3e 70 2e |size[2] |= cp->p.|
|00004ea0| 61 6e 67 6c 65 2a 36 34 | 3b 0a 58 20 20 20 20 6f |angle*64|;.X o|
|00004eb0| 72 69 67 69 6e 20 3d 20 | 42 6f 72 64 65 72 2b 63 |rigin = |Border+c|
|00004ec0| 70 2d 3e 70 2e 6c 77 69 | 64 74 68 3b 0a 58 20 20 |p->p.lwi|dth;.X |
|00004ed0| 20 20 63 70 2d 3e 78 20 | 3d 20 63 70 2d 3e 79 20 | cp->x |= cp->y |
|00004ee0| 3d 20 42 6f 72 64 65 72 | 3b 0a 58 20 20 20 20 63 |= Border|;.X c|
|00004ef0| 70 2d 3e 62 62 78 20 3d | 20 63 70 2d 3e 73 69 7a |p->bbx =| cp->siz|
|00004f00| 65 5b 30 5d 2b 32 2a 63 | 70 2d 3e 70 2e 6c 77 69 |e[0]+2*c|p->p.lwi|
|00004f10| 64 74 68 3b 0a 58 20 20 | 20 20 63 70 2d 3e 62 62 |dth;.X | cp->bb|
|00004f20| 79 20 3d 20 63 70 2d 3e | 73 69 7a 65 5b 31 5d 2b |y = cp->|size[1]+|
|00004f30| 32 2a 63 70 2d 3e 70 2e | 6c 77 69 64 74 68 3b 0a |2*cp->p.|lwidth;.|
|00004f40| 58 20 20 20 20 69 66 20 | 28 63 70 2d 3e 6f 2e 66 |X if |(cp->o.f|
|00004f50| 69 6c 6c 29 20 7b 0a 58 | 09 4d 6f 76 65 43 6c 69 |ill) {.X|.MoveCli|
|00004f60| 70 28 0a 58 09 20 20 20 | 20 73 70 2c 63 70 2c 63 |p(.X. | sp,cp,c|
|00004f70| 70 2d 3e 78 2b 63 70 2d | 3e 62 62 78 2f 32 2d 4f |p->x+cp-|>bbx/2-O|
|00004f80| 76 65 72 6c 61 70 53 69 | 7a 65 2c 63 70 2d 3e 79 |verlapSi|ze,cp->y|
|00004f90| 2b 63 70 2d 3e 62 62 79 | 2f 32 2d 4f 76 65 72 6c |+cp->bby|/2-Overl|
|00004fa0| 61 70 53 69 7a 65 0a 58 | 09 29 3b 0a 58 20 20 20 |apSize.X|.);.X |
|00004fb0| 20 7d 0a 58 20 20 20 20 | 65 6c 73 65 20 4d 6f 76 | }.X |else Mov|
|00004fc0| 65 43 6c 69 70 28 73 70 | 2c 63 70 2c 63 70 2d 3e |eClip(sp|,cp,cp->|
|00004fd0| 78 2c 63 70 2d 3e 79 2b | 63 70 2d 3e 62 62 79 2f |x,cp->y+|cp->bby/|
|00004fe0| 32 29 3b 0a 58 20 20 20 | 20 53 74 61 72 74 28 73 |2);.X | Start(s|
|00004ff0| 70 2c 63 70 29 3b 0a 58 | 7d 0a 58 0a 58 76 6f 69 |p,cp);.X|}.X.Xvoi|
|00005000| 64 20 44 6f 41 72 63 28 | 73 70 2c 63 70 29 0a 58 |d DoArc(|sp,cp).X|
|00005010| 20 20 20 20 53 74 61 74 | 65 2a 20 20 73 70 3b 0a | Stat|e* sp;.|
|00005020| 58 20 20 20 20 43 6d 64 | 2a 20 20 20 20 63 70 3b |X Cmd|* cp;|
|00005030| 0a 58 7b 0a 58 20 20 20 | 20 69 6e 74 20 69 3b 0a |.X{.X | int i;.|
|00005040| 58 20 20 20 20 69 6e 74 | 20 78 20 3d 20 63 70 2d |X int| x = cp-|
|00005050| 3e 78 2b 63 70 2d 3e 70 | 2e 6c 77 69 64 74 68 3b |>x+cp->p|.lwidth;|
|00005060| 0a 58 20 20 20 20 69 6e | 74 20 79 20 3d 20 63 70 |.X in|t y = cp|
|00005070| 2d 3e 79 2b 63 70 2d 3e | 70 2e 6c 77 69 64 74 68 |->y+cp->|p.lwidth|
|00005080| 3b 0a 58 0a 58 20 20 20 | 20 66 6f 72 20 28 69 3d |;.X.X | for (i=|
|00005090| 30 3b 69 3c 63 70 2d 3e | 70 2e 63 6f 75 6e 74 3b |0;i<cp->|p.count;|
|000050a0| 69 2b 2b 29 20 7b 0a 58 | 09 53 74 61 72 74 49 74 |i++) {.X|.StartIt|
|000050b0| 65 72 61 74 69 6f 6e 28 | 73 70 2c 63 70 29 3b 0a |eration(|sp,cp);.|
|000050c0| 58 23 09 69 66 64 65 66 | 20 58 31 31 0a 58 09 20 |X#.ifdef| X11.X. |
|000050d0| 20 20 20 69 66 20 28 63 | 70 2d 3e 6f 2e 66 69 6c | if (c|p->o.fil|
|000050e0| 6c 29 20 7b 0a 58 09 09 | 58 46 69 6c 6c 41 72 63 |l) {.X..|XFillArc|
|000050f0| 28 0a 58 09 09 20 20 20 | 20 73 70 2d 3e 64 2c 63 |(.X.. | sp->d,c|
|00005100| 70 2d 3e 64 65 73 74 2c | 63 70 2d 3e 67 63 2c 78 |p->dest,|cp->gc,x|
|00005110| 2c 79 2c 63 70 2d 3e 73 | 69 7a 65 5b 30 5d 2c 63 |,y,cp->s|ize[0],c|
|00005120| 70 2d 3e 73 69 7a 65 5b | 31 5d 2c 30 2c 0a 58 09 |p->size[|1],0,.X.|
|00005130| 09 20 20 20 20 63 70 2d | 3e 73 69 7a 65 5b 32 5d |. cp-|>size[2]|
|00005140| 0a 58 09 09 29 3b 0a 58 | 09 20 20 20 20 7d 0a 58 |.X..);.X|. }.X|
|00005150| 09 20 20 20 20 65 6c 73 | 65 20 7b 0a 58 09 09 58 |. els|e {.X..X|
|00005160| 44 72 61 77 41 72 63 28 | 0a 58 09 09 20 20 20 20 |DrawArc(|.X.. |
|00005170| 73 70 2d 3e 64 2c 63 70 | 2d 3e 64 65 73 74 2c 63 |sp->d,cp|->dest,c|
|00005180| 70 2d 3e 67 63 2c 78 2c | 79 2c 63 70 2d 3e 73 69 |p->gc,x,|y,cp->si|
|00005190| 7a 65 5b 30 5d 2c 63 70 | 2d 3e 73 69 7a 65 5b 31 |ze[0],cp|->size[1|
|000051a0| 5d 2c 30 2c 0a 58 09 09 | 20 20 20 20 63 70 2d 3e |],0,.X..| cp->|
|000051b0| 73 69 7a 65 5b 32 5d 0a | 58 09 09 29 3b 0a 58 09 |size[2].|X..);.X.|
|000051c0| 20 20 20 20 7d 0a 58 23 | 09 65 6e 64 69 66 20 58 | }.X#|.endif X|
|000051d0| 31 31 0a 58 20 20 20 20 | 7d 0a 58 7d 0a 58 0a 58 |11.X |}.X}.X.X|
|000051e0| 76 6f 69 64 20 53 74 61 | 72 74 42 6c 69 74 28 73 |void Sta|rtBlit(s|
|000051f0| 70 2c 63 70 29 0a 58 20 | 20 20 20 53 74 61 74 65 |p,cp).X | State|
|00005200| 2a 20 20 73 70 3b 0a 58 | 20 20 20 20 43 6d 64 2a |* sp;.X| Cmd*|
|00005210| 20 20 20 20 63 70 3b 0a | 58 7b 0a 58 20 20 20 20 | cp;.|X{.X |
|00005220| 50 69 78 65 6c 20 20 20 | 63 6f 6c 6f 72 66 67 3b |Pixel |colorfg;|
|00005230| 0a 58 20 20 20 20 69 6e | 74 09 20 20 20 20 69 3b |.X in|t. i;|
|00005240| 0a 58 0a 58 20 20 20 20 | 53 74 61 72 74 28 73 70 |.X.X |Start(sp|
|00005250| 2c 63 70 29 3b 0a 58 20 | 20 20 20 63 70 2d 3e 62 |,cp);.X | cp->b|
|00005260| 62 78 20 3d 20 63 70 2d | 3e 62 62 79 20 3d 20 30 |bx = cp-|>bby = 0|
|00005270| 3b 0a 58 20 20 20 20 63 | 6f 6c 6f 72 66 67 20 3d |;.X c|olorfg =|
|00005280| 20 63 70 2d 3e 63 6f 6c | 6f 72 66 67 3b 0a 58 20 | cp->col|orfg;.X |
|00005290| 20 20 20 4d 6f 76 65 43 | 6c 69 70 28 73 70 2c 63 | MoveC|lip(sp,c|
|000052a0| 70 2c 42 6f 72 64 65 72 | 2b 63 70 2d 3e 70 2e 73 |p,Border|+cp->p.s|
|000052b0| 69 7a 65 2f 32 2c 42 6f | 72 64 65 72 2b 63 70 2d |ize/2,Bo|rder+cp-|
|000052c0| 3e 70 2e 73 69 7a 65 2f | 32 29 3b 0a 58 20 20 20 |>p.size/|2);.X |
|000052d0| 20 66 6f 72 20 28 69 3d | 30 3b 69 3c 32 3b 69 2b | for (i=|0;i<2;i+|
|000052e0| 2b 29 20 7b 0a 58 09 53 | 74 61 72 74 49 74 65 72 |+) {.X.S|tartIter|
|000052f0| 61 74 69 6f 6e 28 73 70 | 2c 63 70 29 3b 0a 58 23 |ation(sp|,cp);.X#|
|00005300| 09 69 66 64 65 66 20 58 | 31 30 0a 58 09 20 20 20 |.ifdef X|10.X. |
|00005310| 20 58 50 69 78 46 69 6c | 6c 28 0a 58 09 09 63 70 | XPixFil|l(.X..cp|
|00005320| 2d 3e 77 2c 42 6f 72 64 | 65 72 2c 42 6f 72 64 65 |->w,Bord|er,Borde|
|00005330| 72 2c 63 70 2d 3e 70 2e | 73 69 7a 65 2c 63 70 2d |r,cp->p.|size,cp-|
|00005340| 3e 70 2e 73 69 7a 65 2c | 63 6f 6c 6f 72 66 67 2c |>p.size,|colorfg,|
|00005350| 30 2c 63 70 2d 3e 66 75 | 6e 63 2c 0a 58 09 09 41 |0,cp->fu|nc,.X..A|
|00005360| 6c 6c 50 6c 61 6e 65 73 | 0a 58 09 20 20 20 20 29 |llPlanes|.X. )|
|00005370| 3b 0a 58 23 09 65 6c 73 | 65 0a 58 09 20 20 20 20 |;.X#.els|e.X. |
|00005380| 58 46 69 6c 6c 52 65 63 | 74 61 6e 67 6c 65 28 0a |XFillRec|tangle(.|
|00005390| 58 09 09 73 70 2d 3e 64 | 2c 63 70 2d 3e 73 72 63 |X..sp->d|,cp->src|
|000053a0| 2c 73 70 2d 3e 67 63 31 | 2c 42 6f 72 64 65 72 2c |,sp->gc1|,Border,|
|000053b0| 42 6f 72 64 65 72 2c 63 | 70 2d 3e 70 2e 73 69 7a |Border,c|p->p.siz|
|000053c0| 65 2c 63 70 2d 3e 70 2e | 73 69 7a 65 0a 58 09 20 |e,cp->p.|size.X. |
|000053d0| 20 20 20 29 3b 0a 58 23 | 09 65 6e 64 69 66 0a 58 | );.X#|.endif.X|
|000053e0| 20 20 20 20 7d 0a 58 20 | 20 20 20 63 70 2d 3e 78 | }.X | cp->x|
|000053f0| 20 3d 20 63 70 2d 3e 79 | 20 3d 20 42 6f 72 64 65 | = cp->y| = Borde|
|00005400| 72 3b 0a 58 20 20 20 20 | 63 70 2d 3e 73 69 7a 65 |r;.X |cp->size|
|00005410| 5b 30 5d 20 3d 20 63 70 | 2d 3e 70 2e 6f 66 66 73 |[0] = cp|->p.offs|
|00005420| 65 74 2a 63 70 2d 3e 70 | 2e 73 69 7a 65 3b 0a 58 |et*cp->p|.size;.X|
|00005430| 7d 0a 58 0a 58 76 6f 69 | 64 20 44 6f 42 6c 69 74 |}.X.Xvoi|d DoBlit|
|00005440| 28 73 70 2c 63 70 29 0a | 58 20 20 20 20 53 74 61 |(sp,cp).|X Sta|
|00005450| 74 65 2a 20 20 73 70 3b | 0a 58 20 20 20 20 43 6d |te* sp;|.X Cm|
|00005460| 64 2a 20 20 20 20 63 70 | 3b 0a 58 7b 0a 58 20 20 |d* cp|;.X{.X |
|00005470| 20 20 58 45 76 65 6e 74 | 09 09 20 20 20 20 65 3b | XEvent|.. e;|
|00005480| 0a 58 20 20 20 20 69 6e | 74 09 09 09 20 20 20 20 |.X in|t... |
|00005490| 69 3b 0a 58 20 20 20 20 | 58 47 72 61 70 68 69 63 |i;.X |XGraphic|
|000054a0| 73 45 78 70 6f 73 65 45 | 76 65 6e 74 2a 20 20 20 |sExposeE|vent* |
|000054b0| 78 65 70 3b 0a 58 0a 58 | 23 20 20 20 69 66 64 65 |xep;.X.X|# ifde|
|000054c0| 66 20 58 31 30 0a 58 09 | 78 65 70 20 3d 20 28 58 |f X10.X.|xep = (X|
|000054d0| 47 72 61 70 68 69 63 73 | 45 78 70 6f 73 65 45 76 |Graphics|ExposeEv|
|000054e0| 65 6e 74 2a 29 26 65 3b | 0a 58 23 20 20 20 65 6c |ent*)&e;|.X# el|
|000054f0| 73 65 0a 58 09 78 65 70 | 20 3d 20 26 65 2e 78 67 |se.X.xep| = &e.xg|
|00005500| 72 61 70 68 69 63 73 65 | 78 70 6f 73 65 3b 0a 58 |raphicse|xpose;.X|
|00005510| 23 20 20 20 65 6e 64 69 | 66 0a 58 20 20 20 20 66 |# endi|f.X f|
|00005520| 6f 72 20 28 69 3d 30 3b | 69 3c 63 70 2d 3e 70 2e |or (i=0;|i<cp->p.|
|00005530| 63 6f 75 6e 74 3b 69 2b | 2b 29 20 7b 0a 58 09 53 |count;i+|+) {.X.S|
|00005540| 74 61 72 74 49 74 65 72 | 61 74 69 6f 6e 28 73 70 |tartIter|ation(sp|
|00005550| 2c 63 70 29 3b 0a 58 23 | 09 69 66 64 65 66 20 58 |,cp);.X#|.ifdef X|
|00005560| 31 30 0a 58 09 20 20 20 | 20 58 43 6f 70 79 41 72 |10.X. | XCopyAr|
|00005570| 65 61 28 0a 58 09 09 63 | 70 2d 3e 77 2c 42 6f 72 |ea(.X..c|p->w,Bor|
|00005580| 64 65 72 2c 42 6f 72 64 | 65 72 2c 63 70 2d 3e 78 |der,Bord|er,cp->x|
|00005590| 2b 63 70 2d 3e 73 69 7a | 65 5b 30 5d 2c 63 70 2d |+cp->siz|e[0],cp-|
|000055a0| 3e 79 2b 63 70 2d 3e 73 | 69 7a 65 5b 30 5d 2c 0a |>y+cp->s|ize[0],.|
|000055b0| 58 09 09 63 70 2d 3e 70 | 2e 73 69 7a 65 2c 63 70 |X..cp->p|.size,cp|
|000055c0| 2d 3e 70 2e 73 69 7a 65 | 2c 63 70 2d 3e 66 75 6e |->p.size|,cp->fun|
|000055d0| 63 2c 41 6c 6c 50 6c 61 | 6e 65 73 0a 58 09 20 20 |c,AllPla|nes.X. |
|000055e0| 20 20 29 3b 0a 58 09 20 | 20 20 20 69 66 20 28 63 | );.X. | if (c|
|000055f0| 70 2d 3e 6f 2e 6f 76 65 | 72 6c 61 70 29 20 64 6f |p->o.ove|rlap) do|
|00005600| 20 7b 0a 58 09 09 58 4d | 61 73 6b 45 76 65 6e 74 | {.X..XM|askEvent|
|00005610| 28 45 78 70 6f 73 65 52 | 65 67 69 6f 6e 7c 45 78 |(ExposeR|egion|Ex|
|00005620| 70 6f 73 75 72 65 4d 61 | 73 6b 2c 26 65 29 3b 0a |posureMa|sk,&e);.|
|00005630| 58 09 09 69 66 20 28 65 | 2e 74 79 70 65 3d 3d 45 |X..if (e|.type==E|
|00005640| 78 70 6f 73 65 52 65 67 | 69 6f 6e 29 20 7b 0a 58 |xposeReg|ion) {.X|
|00005650| 09 09 20 20 20 20 58 50 | 69 78 46 69 6c 6c 28 0a |.. XP|ixFill(.|
|00005660| 58 09 09 09 63 70 2d 3e | 77 2c 78 65 70 2d 3e 78 |X...cp->|w,xep->x|
|00005670| 2c 78 65 70 2d 3e 79 2c | 78 65 70 2d 3e 77 69 64 |,xep->y,|xep->wid|
|00005680| 74 68 2c 78 65 70 2d 3e | 68 65 69 67 68 74 2c 63 |th,xep->|height,c|
|00005690| 70 2d 3e 63 6f 6c 6f 72 | 66 67 2c 0a 58 09 09 09 |p->color|fg,.X...|
|000056a0| 30 2c 63 70 2d 3e 66 75 | 6e 63 2c 41 6c 6c 50 6c |0,cp->fu|nc,AllPl|
|000056b0| 61 6e 65 73 0a 58 09 09 | 20 20 20 20 29 3b 0a 58 |anes.X..| );.X|
|000056c0| 09 09 7d 0a 58 09 20 20 | 20 20 7d 20 77 68 69 6c |..}.X. | } whil|
|000056d0| 65 20 28 65 2e 74 79 70 | 65 21 3d 45 78 70 6f 73 |e (e.typ|e!=Expos|
|000056e0| 75 72 65 4d 61 73 6b 29 | 3b 0a 58 23 09 65 6c 73 |ureMask)|;.X#.els|
|000056f0| 65 0a 58 09 20 20 20 20 | 58 43 6f 70 79 41 72 65 |e.X. |XCopyAre|
|00005700| 61 28 0a 58 09 09 73 70 | 2d 3e 64 2c 63 70 2d 3e |a(.X..sp|->d,cp->|
|00005710| 73 72 63 2c 63 70 2d 3e | 64 65 73 74 2c 63 70 2d |src,cp->|dest,cp-|
|00005720| 3e 67 63 2c 42 6f 72 64 | 65 72 2c 42 6f 72 64 65 |>gc,Bord|er,Borde|
|00005730| 72 2c 63 70 2d 3e 70 2e | 73 69 7a 65 2c 0a 58 09 |r,cp->p.|size,.X.|
|00005740| 09 63 70 2d 3e 70 2e 73 | 69 7a 65 2c 63 70 2d 3e |.cp->p.s|ize,cp->|
|00005750| 78 2b 63 70 2d 3e 73 69 | 7a 65 5b 30 5d 2c 63 70 |x+cp->si|ze[0],cp|
|00005760| 2d 3e 79 2b 63 70 2d 3e | 73 69 7a 65 5b 30 5d 0a |->y+cp->|size[0].|
|00005770| 58 09 20 20 20 20 29 3b | 0a 58 09 20 20 20 20 69 |X. );|.X. i|
|00005780| 66 20 28 63 70 2d 3e 6f | 2e 6f 76 65 72 6c 61 70 |f (cp->o|.overlap|
|00005790| 29 20 64 6f 20 7b 0a 58 | 09 09 58 4d 61 73 6b 45 |) do {.X|..XMaskE|
|000057a0| 76 65 6e 74 28 73 70 2d | 3e 64 2c 45 78 70 6f 73 |vent(sp-|>d,Expos|
|000057b0| 75 72 65 4d 61 73 6b 2c | 26 65 29 3b 0a 58 09 09 |ureMask,|&e);.X..|
|000057c0| 69 66 20 28 65 2e 74 79 | 70 65 3d 3d 47 72 61 70 |if (e.ty|pe==Grap|
|000057d0| 68 69 63 73 45 78 70 6f | 73 65 29 20 7b 0a 58 09 |hicsExpo|se) {.X.|
|000057e0| 09 20 20 20 20 58 46 69 | 6c 6c 52 65 63 74 61 6e |. XFi|llRectan|
|000057f0| 67 6c 65 28 0a 58 09 09 | 09 73 70 2d 3e 64 2c 63 |gle(.X..|.sp->d,c|
|00005800| 70 2d 3e 64 65 73 74 2c | 63 70 2d 3e 67 63 2c 78 |p->dest,|cp->gc,x|
|00005810| 65 70 2d 3e 78 2c 78 65 | 70 2d 3e 79 2c 78 65 70 |ep->x,xe|p->y,xep|
|00005820| 2d 3e 77 69 64 74 68 2c | 0a 58 09 09 09 78 65 70 |->width,|.X...xep|
|00005830| 2d 3e 68 65 69 67 68 74 | 0a 58 09 09 20 20 20 20 |->height|.X.. |
|00005840| 29 3b 0a 58 09 09 7d 0a | 58 09 20 20 20 20 7d 20 |);.X..}.|X. } |
|00005850| 77 68 69 6c 65 20 28 28 | 65 2e 74 79 70 65 3d 3d |while ((|e.type==|
|00005860| 47 72 61 70 68 69 63 73 | 45 78 70 6f 73 65 29 26 |Graphics|Expose)&|
|00005870| 26 78 65 70 2d 3e 63 6f | 75 6e 74 29 3b 0a 58 23 |&xep->co|unt);.X#|
|00005880| 09 65 6e 64 69 66 0a 58 | 20 20 20 20 7d 0a 58 7d |.endif.X| }.X}|
|00005890| 0a 58 0a 58 76 6f 69 64 | 20 53 74 61 72 74 4d 61 |.X.Xvoid| StartMa|
|000058a0| 70 28 73 70 2c 63 70 29 | 0a 58 20 20 20 20 53 74 |p(sp,cp)|.X St|
|000058b0| 61 74 65 2a 20 20 73 70 | 3b 0a 58 20 20 20 20 43 |ate* sp|;.X C|
|000058c0| 6d 64 2a 20 20 20 20 63 | 70 3b 0a 58 7b 0a 58 20 |md* c|p;.X{.X |
|000058d0| 20 20 20 69 6e 74 09 20 | 20 20 20 77 68 65 69 67 | int. | wheig|
|000058e0| 68 74 3b 0a 58 20 20 20 | 20 69 6e 74 09 20 20 20 |ht;.X | int. |
|000058f0| 20 69 3b 0a 58 20 20 20 | 20 69 6e 74 09 20 20 20 | i;.X | int. |
|00005900| 20 6e 63 6f 6c 73 20 3d | 20 5f 44 69 73 70 6c 61 | ncols =| _Displa|
|00005910| 79 57 69 64 74 68 2f 63 | 70 2d 3e 70 2e 73 69 7a |yWidth/c|p->p.siz|
|00005920| 65 3b 0a 58 23 20 20 20 | 69 66 64 65 66 20 58 31 |e;.X# |ifdef X1|
|00005930| 31 0a 58 20 20 20 20 20 | 20 20 20 58 53 65 74 57 |1.X | XSetW|
|00005940| 69 6e 64 6f 77 41 74 74 | 72 69 62 75 74 65 73 20 |indowAtt|ributes |
|00005950| 73 77 61 3b 0a 58 23 20 | 20 20 65 6e 64 69 66 20 |swa;.X# | endif |
|00005960| 58 31 31 0a 58 0a 58 20 | 20 20 20 63 70 2d 3e 78 |X11.X.X | cp->x|
|00005970| 20 3d 20 63 70 2d 3e 79 | 20 3d 20 63 70 2d 3e 62 | = cp->y| = cp->b|
|00005980| 62 78 20 3d 20 63 70 2d | 3e 62 62 79 20 3d 20 30 |bx = cp-|>bby = 0|
|00005990| 3b 0a 58 20 20 20 20 63 | 70 2d 3e 70 2e 6e 77 69 |;.X c|p->p.nwi|
|000059a0| 6e 20 3d 20 4c 69 6d 69 | 74 28 63 70 2d 3e 70 2e |n = Limi|t(cp->p.|
|000059b0| 6e 77 69 6e 2c 31 2c 6e | 63 6f 6c 73 2a 5f 44 69 |nwin,1,n|cols*_Di|
|000059c0| 73 70 6c 61 79 48 65 69 | 67 68 74 2f 63 70 2d 3e |splayHei|ght/cp->|
|000059d0| 70 2e 73 69 7a 65 29 3b | 0a 58 20 20 20 20 63 70 |p.size);|.X cp|
|000059e0| 2d 3e 6f 2e 61 6c 74 77 | 69 6e 20 3d 20 66 61 6c |->o.altw|in = fal|
|000059f0| 73 65 3b 0a 58 20 20 20 | 20 77 68 65 69 67 68 74 |se;.X | wheight|
|00005a00| 20 3d 20 63 70 2d 3e 70 | 2e 73 69 7a 65 2a 28 31 | = cp->p|.size*(1|
|00005a10| 2b 63 70 2d 3e 70 2e 6e | 77 69 6e 2f 6e 63 6f 6c |+cp->p.n|win/ncol|
|00005a20| 73 29 3b 0a 58 20 20 20 | 20 53 74 61 72 74 28 73 |s);.X | Start(s|
|00005a30| 70 2c 63 70 29 3b 0a 58 | 20 20 20 20 55 6e 6d 61 |p,cp);.X| Unma|
|00005a40| 70 57 69 6e 28 73 70 2c | 63 70 2d 3e 77 29 3b 0a |pWin(sp,|cp->w);.|
|00005a50| 58 20 20 20 20 63 70 2d | 3e 77 20 3d 20 58 43 72 |X cp-|>w = XCr|
|00005a60| 65 61 74 65 53 69 6d 70 | 6c 65 57 69 6e 64 6f 77 |eateSimp|leWindow|
|00005a70| 28 0a 58 09 44 41 52 47 | 43 20 5f 52 6f 6f 74 57 |(.X.DARG|C _RootW|
|00005a80| 69 6e 64 6f 77 2c 30 2c | 30 2c 5f 44 69 73 70 6c |indow,0,|0,_Displ|
|00005a90| 61 79 57 69 64 74 68 2c | 77 68 65 69 67 68 74 2c |ayWidth,|wheight,|
|00005aa0| 31 2c 57 68 69 74 65 50 | 69 78 6d 61 70 2c 42 6c |1,WhiteP|ixmap,Bl|
|00005ab0| 61 63 6b 50 69 78 6d 61 | 70 0a 58 20 20 20 20 29 |ackPixma|p.X )|
|00005ac0| 3b 0a 58 20 20 20 20 66 | 6f 72 20 28 69 3d 30 3b |;.X f|or (i=0;|
|00005ad0| 69 3c 63 70 2d 3e 70 2e | 6e 77 69 6e 3b 69 2b 2b |i<cp->p.|nwin;i++|
|00005ae0| 29 20 7b 0a 58 09 58 43 | 72 65 61 74 65 53 69 6d |) {.X.XC|reateSim|
|00005af0| 70 6c 65 57 69 6e 64 6f | 77 28 0a 58 09 20 20 20 |pleWindo|w(.X. |
|00005b00| 20 44 41 52 47 43 20 63 | 70 2d 3e 77 2c 63 70 2d | DARGC c|p->w,cp-|
|00005b10| 3e 70 2e 73 69 7a 65 2a | 28 69 25 6e 63 6f 6c 73 |>p.size*|(i%ncols|
|00005b20| 29 2c 63 70 2d 3e 70 2e | 73 69 7a 65 2a 28 69 2f |),cp->p.|size*(i/|
|00005b30| 6e 63 6f 6c 73 29 2c 63 | 70 2d 3e 70 2e 73 69 7a |ncols),c|p->p.siz|
|00005b40| 65 2c 0a 58 09 20 20 20 | 20 63 70 2d 3e 70 2e 73 |e,.X. | cp->p.s|
|00005b50| 69 7a 65 2c 31 2c 57 68 | 69 74 65 50 69 78 6d 61 |ize,1,Wh|itePixma|
|00005b60| 70 2c 42 6c 61 63 6b 50 | 69 78 6d 61 70 0a 58 09 |p,BlackP|ixmap.X.|
|00005b70| 29 3b 0a 58 20 20 20 20 | 7d 0a 58 23 20 20 20 69 |);.X |}.X# i|
|00005b80| 66 64 65 66 20 58 31 31 | 0a 58 20 20 20 20 20 20 |fdef X11|.X |
|00005b90| 20 20 73 77 61 2e 6f 76 | 65 72 72 69 64 65 5f 72 | swa.ov|erride_r|
|00005ba0| 65 64 69 72 65 63 74 20 | 3d 20 31 3b 0a 58 20 20 |edirect |= 1;.X |
|00005bb0| 20 20 20 20 20 20 58 43 | 68 61 6e 67 65 57 69 6e | XC|hangeWin|
|00005bc0| 64 6f 77 41 74 74 72 69 | 62 75 74 65 73 28 73 70 |dowAttri|butes(sp|
|00005bd0| 2d 3e 64 2c 63 70 2d 3e | 77 2c 43 57 4f 76 65 72 |->d,cp->|w,CWOver|
|00005be0| 72 69 64 65 52 65 64 69 | 72 65 63 74 2c 26 73 77 |rideRedi|rect,&sw|
|00005bf0| 61 29 3b 0a 58 23 20 20 | 20 65 6e 64 69 66 20 58 |a);.X# | endif X|
|00005c00| 31 31 0a 58 20 20 20 20 | 58 52 61 69 73 65 57 69 |11.X |XRaiseWi|
|00005c10| 6e 64 6f 77 28 44 41 52 | 47 43 20 63 70 2d 3e 77 |ndow(DAR|GC cp->w|
|00005c20| 29 3b 0a 58 20 20 20 20 | 58 4d 61 70 57 69 6e 64 |);.X |XMapWind|
|00005c30| 6f 77 28 44 41 52 47 43 | 20 63 70 2d 3e 77 29 3b |ow(DARGC| cp->w);|
|00005c40| 0a 58 20 20 20 20 58 53 | 65 6c 65 63 74 49 6e 70 |.X XS|electInp|
|00005c50| 75 74 28 44 41 52 47 43 | 20 63 70 2d 3e 77 2c 49 |ut(DARGC| cp->w,I|
|00005c60| 6e 70 75 74 4d 61 73 6b | 28 63 70 29 29 3b 0a 58 |nputMask|(cp));.X|
|00005c70| 7d 0a 58 0a 58 76 6f 69 | 64 20 44 6f 4d 61 70 28 |}.X.Xvoi|d DoMap(|
|00005c80| 73 70 2c 63 70 29 0a 58 | 20 20 20 20 53 74 61 74 |sp,cp).X| Stat|
|00005c90| 65 2a 20 20 73 70 3b 0a | 58 20 20 20 20 43 6d 64 |e* sp;.|X Cmd|
|00005ca0| 2a 20 20 20 20 63 70 3b | 0a 58 7b 0a 58 20 20 20 |* cp;|.X{.X |
|00005cb0| 20 69 6e 74 20 69 3b 0a | 58 0a 58 20 20 20 20 66 | int i;.|X.X f|
|00005cc0| 6f 72 20 28 69 3d 30 3b | 69 3c 63 70 2d 3e 70 2e |or (i=0;|i<cp->p.|
|00005cd0| 63 6f 75 6e 74 3b 69 2b | 2b 29 20 7b 0a 58 09 58 |count;i+|+) {.X.X|
|00005ce0| 4d 61 70 53 75 62 77 69 | 6e 64 6f 77 73 28 44 41 |MapSubwi|ndows(DA|
|00005cf0| 52 47 43 20 63 70 2d 3e | 77 29 3b 0a 58 09 58 55 |RGC cp->|w);.X.XU|
|00005d00| 6e 6d 61 70 53 75 62 77 | 69 6e 64 6f 77 73 28 44 |nmapSubw|indows(D|
|00005d10| 41 52 47 43 20 63 70 2d | 3e 77 29 3b 0a 58 20 20 |ARGC cp-|>w);.X |
|00005d20| 20 20 7d 0a 58 7d 0a 58 | 0a 58 76 6f 69 64 20 46 | }.X}.X|.Xvoid F|
|00005d30| 69 6e 69 73 68 4d 61 70 | 28 73 70 2c 63 70 29 0a |inishMap|(sp,cp).|
|00005d40| 58 20 20 20 20 53 74 61 | 74 65 2a 20 20 73 70 3b |X Sta|te* sp;|
|00005d50| 0a 58 20 20 20 20 43 6d | 64 2a 20 20 20 20 63 70 |.X Cm|d* cp|
|00005d60| 3b 0a 58 7b 0a 58 20 20 | 20 20 46 69 6e 69 73 68 |;.X{.X | Finish|
|00005d70| 28 73 70 2c 63 70 29 3b | 0a 58 20 20 20 20 58 55 |(sp,cp);|.X XU|
|00005d80| 6e 6d 61 70 57 69 6e 64 | 6f 77 28 44 41 52 47 43 |nmapWind|ow(DARGC|
|00005d90| 20 63 70 2d 3e 77 29 3b | 0a 58 20 20 20 20 58 44 | cp->w);|.X XD|
|00005da0| 65 73 74 72 6f 79 57 69 | 6e 64 6f 77 28 44 41 52 |estroyWi|ndow(DAR|
|00005db0| 47 43 20 63 70 2d 3e 77 | 29 3b 0a 58 20 20 20 20 |GC cp->w|);.X |
|00005dc0| 63 70 2d 3e 77 20 3d 20 | 73 70 2d 3e 77 31 3b 0a |cp->w = |sp->w1;.|
|00005dd0| 58 20 20 20 20 4d 61 70 | 57 69 6e 28 73 70 2c 63 |X Map|Win(sp,c|
|00005de0| 70 2d 3e 77 29 3b 0a 58 | 20 20 20 20 58 46 6c 75 |p->w);.X| XFlu|
|00005df0| 73 68 28 44 41 52 47 29 | 3b 0a 58 7d 0a 58 0a 58 |sh(DARG)|;.X}.X.X|
|00005e00| 76 6f 69 64 20 44 6f 4e | 6f 70 28 73 70 2c 63 70 |void DoN|op(sp,cp|
|00005e10| 29 0a 58 20 20 20 20 53 | 74 61 74 65 2a 20 20 73 |).X S|tate* s|
|00005e20| 70 3b 0a 58 20 20 20 20 | 43 6d 64 2a 20 20 20 20 |p;.X |Cmd* |
|00005e30| 63 70 3b 0a 58 7b 0a 58 | 20 20 20 20 69 6e 74 09 |cp;.X{.X| int.|
|00005e40| 69 3b 0a 58 0a 58 23 20 | 20 20 69 66 64 65 66 20 |i;.X.X# | ifdef |
|00005e50| 58 31 31 0a 58 09 66 6f | 72 20 28 69 3d 30 3b 69 |X11.X.fo|r (i=0;i|
|00005e60| 3c 63 70 2d 3e 70 2e 63 | 6f 75 6e 74 3b 69 2b 2b |<cp->p.c|ount;i++|
|00005e70| 29 20 58 4e 6f 4f 70 28 | 73 70 2d 3e 64 29 3b 0a |) XNoOp(|sp->d);.|
|00005e80| 58 23 20 20 20 65 6e 64 | 69 66 20 58 31 31 0a 58 |X# end|if X11.X|
|00005e90| 7d 0a 58 0a 58 76 6f 69 | 64 20 53 74 61 72 74 50 |}.X.Xvoi|d StartP|
|00005ea0| 6f 69 6e 74 28 73 70 2c | 63 70 29 0a 58 20 20 20 |oint(sp,|cp).X |
|00005eb0| 20 53 74 61 74 65 2a 20 | 20 73 70 3b 0a 58 20 20 | State* | sp;.X |
|00005ec0| 20 20 43 6d 64 2a 20 20 | 20 20 63 70 3b 0a 58 7b | Cmd* | cp;.X{|
|00005ed0| 0a 58 20 20 20 20 63 70 | 2d 3e 78 20 3d 20 63 70 |.X cp|->x = cp|
|00005ee0| 2d 3e 79 20 3d 20 42 6f | 72 64 65 72 3b 0a 58 20 |->y = Bo|rder;.X |
|00005ef0| 20 20 20 63 70 2d 3e 62 | 62 78 20 3d 20 63 70 2d | cp->b|bx = cp-|
|00005f00| 3e 62 62 79 20 3d 20 31 | 3b 0a 58 20 20 20 20 4d |>bby = 1|;.X M|
|00005f10| 6f 76 65 43 6c 69 70 28 | 73 70 2c 63 70 2c 63 70 |oveClip(|sp,cp,cp|
|00005f20| 2d 3e 78 2c 63 70 2d 3e | 79 29 3b 0a 58 20 20 20 |->x,cp->|y);.X |
|00005f30| 20 53 74 61 72 74 28 73 | 70 2c 63 70 29 3b 0a 58 | Start(s|p,cp);.X|
|00005f40| 7d 0a 58 0a 58 76 6f 69 | 64 20 44 6f 50 6f 69 6e |}.X.Xvoi|d DoPoin|
|00005f50| 74 28 73 70 2c 63 70 29 | 0a 58 20 20 20 20 53 74 |t(sp,cp)|.X St|
|00005f60| 61 74 65 2a 20 20 73 70 | 3b 0a 58 20 20 20 20 43 |ate* sp|;.X C|
|00005f70| 6d 64 2a 20 20 20 20 63 | 70 3b 0a 58 7b 0a 58 20 |md* c|p;.X{.X |
|00005f80| 20 20 20 69 6e 74 20 69 | 3b 0a 58 20 20 20 20 0a | int i|;.X .|
|00005f90| 58 23 20 20 20 69 66 64 | 65 66 20 58 31 31 0a 58 |X# ifd|ef X11.X|
|00005fa0| 09 66 6f 72 20 28 69 3d | 30 3b 69 3c 63 70 2d 3e |.for (i=|0;i<cp->|
|00005fb0| 70 2e 63 6f 75 6e 74 3b | 69 2b 2b 29 20 7b 0a 58 |p.count;|i++) {.X|
|00005fc0| 09 20 20 20 20 53 74 61 | 72 74 49 74 65 72 61 74 |. Sta|rtIterat|
|00005fd0| 69 6f 6e 28 73 70 2c 63 | 70 29 3b 0a 58 09 20 20 |ion(sp,c|p);.X. |
|00005fe0| 20 20 58 44 72 61 77 50 | 6f 69 6e 74 28 73 70 2d | XDrawP|oint(sp-|
|00005ff0| 3e 64 2c 63 70 2d 3e 64 | 65 73 74 2c 63 70 2d 3e |>d,cp->d|est,cp->|
|00006000| 67 63 2c 63 70 2d 3e 78 | 2c 63 70 2d 3e 79 29 3b |gc,cp->x|,cp->y);|
|00006010| 0a 58 09 7d 0a 58 23 20 | 20 20 65 6e 64 69 66 0a |.X.}.X# | endif.|
|00006020| 58 7d 0a 58 0a 58 76 6f | 69 64 20 53 74 61 72 74 |X}.X.Xvo|id Start|
|00006030| 50 6f 6c 79 28 73 70 2c | 63 70 29 0a 58 20 20 20 |Poly(sp,|cp).X |
|00006040| 20 53 74 61 74 65 2a 20 | 20 73 70 3b 0a 58 20 20 | State* | sp;.X |
|00006050| 20 20 43 6d 64 2a 20 20 | 20 20 63 70 3b 0a 58 7b | Cmd* | cp;.X{|
|00006060| 0a 58 20 20 20 20 69 6e | 74 09 20 20 20 20 66 69 |.X in|t. fi|
|00006070| 6c 6c 72 75 6c 65 3b 0a | 58 20 20 20 20 69 6e 74 |llrule;.|X int|
|00006080| 09 20 20 20 20 69 3b 0a | 58 20 20 20 20 69 6e 74 |. i;.|X int|
|00006090| 09 20 20 20 20 69 6e 64 | 65 78 3b 0a 58 20 20 20 |. ind|ex;.X |
|000060a0| 20 69 6e 74 09 20 20 20 | 20 6f 72 69 67 69 6e 20 | int. | origin |
|000060b0| 3d 20 42 6f 72 64 65 72 | 2b 63 70 2d 3e 70 2e 6c |= Border|+cp->p.l|
|000060c0| 77 69 64 74 68 3b 0a 58 | 20 20 20 20 69 6e 74 09 |width;.X| int.|
|000060d0| 20 20 20 20 72 20 3d 20 | 63 70 2d 3e 70 2e 73 69 | r = |cp->p.si|
|000060e0| 7a 65 2f 32 3b 0a 58 20 | 20 20 20 64 6f 75 62 6c |ze/2;.X | doubl|
|000060f0| 65 20 20 74 68 65 74 61 | 3b 0a 58 0a 58 20 20 20 |e theta|;.X.X |
|00006100| 20 69 66 20 28 63 70 2d | 3e 6f 2e 70 6f 6c 79 73 | if (cp-|>o.polys|
|00006110| 65 6c 66 29 20 63 70 2d | 3e 70 2e 6e 76 65 72 74 |elf) cp-|>p.nvert|
|00006120| 20 3d 20 63 70 2d 3e 70 | 2e 6e 76 65 72 74 2f 32 | = cp->p|.nvert/2|
|00006130| 2a 32 2b 31 3b 0a 58 20 | 20 20 20 74 68 65 74 61 |*2+1;.X | theta|
|00006140| 20 3d 20 32 2a 50 69 2f | 63 70 2d 3e 70 2e 6e 76 | = 2*Pi/|cp->p.nv|
|00006150| 65 72 74 3b 0a 58 20 20 | 20 20 63 70 2d 3e 78 20 |ert;.X | cp->x |
|00006160| 3d 20 63 70 2d 3e 79 20 | 3d 20 42 6f 72 64 65 72 |= cp->y |= Border|
|00006170| 3b 0a 58 20 20 20 20 63 | 70 2d 3e 62 62 78 20 3d |;.X c|p->bbx =|
|00006180| 20 63 70 2d 3e 62 62 79 | 20 3d 20 63 70 2d 3e 70 | cp->bby| = cp->p|
|00006190| 2e 73 69 7a 65 2b 32 2a | 63 70 2d 3e 70 2e 6c 77 |.size+2*|cp->p.lw|
|000061a0| 69 64 74 68 3b 0a 58 20 | 20 20 20 66 6f 72 20 28 |idth;.X | for (|
|000061b0| 69 3d 30 3b 69 3c 3d 63 | 70 2d 3e 70 2e 6e 76 65 |i=0;i<=c|p->p.nve|
|000061c0| 72 74 3b 69 2b 2b 29 20 | 7b 0a 58 09 69 6e 64 65 |rt;i++) |{.X.inde|
|000061d0| 78 20 3d 20 63 70 2d 3e | 6f 2e 70 6f 6c 79 73 65 |x = cp->|o.polyse|
|000061e0| 6c 66 3f 28 69 2a 28 63 | 70 2d 3e 70 2e 6e 76 65 |lf?(i*(c|p->p.nve|
|000061f0| 72 74 2f 32 29 29 25 63 | 70 2d 3e 70 2e 6e 76 65 |rt/2))%c|p->p.nve|
|00006200| 72 74 3a 69 3b 0a 58 09 | 73 70 2d 3e 76 5b 69 5d |rt:i;.X.|sp->v[i]|
|00006210| 2e 78 20 3d 20 6f 72 69 | 67 69 6e 2b 72 2a 28 31 |.x = ori|gin+r*(1|
|00006220| 2b 63 6f 73 28 50 6f 6c | 79 41 6e 67 6c 65 2b 69 |+cos(Pol|yAngle+i|
|00006230| 6e 64 65 78 2a 74 68 65 | 74 61 29 29 3b 0a 58 09 |ndex*the|ta));.X.|
|00006240| 73 70 2d 3e 76 5b 69 5d | 2e 79 20 3d 20 6f 72 69 |sp->v[i]|.y = ori|
|00006250| 67 69 6e 2b 72 2a 28 31 | 2d 73 69 6e 28 50 6f 6c |gin+r*(1|-sin(Pol|
|00006260| 79 41 6e 67 6c 65 2b 69 | 6e 64 65 78 2a 74 68 65 |yAngle+i|ndex*the|
|00006270| 74 61 29 29 3b 0a 58 20 | 20 20 20 7d 0a 58 23 20 |ta));.X | }.X# |
|00006280| 20 20 69 66 64 65 66 20 | 58 31 30 0a 58 09 73 70 | ifdef |X10.X.sp|
|00006290| 2d 3e 76 5b 30 5d 2e 66 | 6c 61 67 73 20 3d 20 56 |->v[0].f|lags = V|
|000062a0| 65 72 74 65 78 53 74 61 | 72 74 43 6c 6f 73 65 64 |ertexSta|rtClosed|
|000062b0| 3b 0a 58 09 66 6f 72 20 | 28 69 3d 31 3b 69 3c 63 |;.X.for |(i=1;i<c|
|000062c0| 70 2d 3e 70 2e 6e 76 65 | 72 74 3b 69 2b 2b 29 20 |p->p.nve|rt;i++) |
|000062d0| 73 70 2d 3e 76 5b 69 5d | 2e 66 6c 61 67 73 20 3d |sp->v[i]|.flags =|
|000062e0| 20 30 3b 0a 58 09 73 70 | 2d 3e 76 5b 63 70 2d 3e | 0;.X.sp|->v[cp->|
|000062f0| 70 2e 6e 76 65 72 74 5d | 2e 66 6c 61 67 73 20 3d |p.nvert]|.flags =|
|00006300| 20 56 65 72 74 65 78 45 | 6e 64 43 6c 6f 73 65 64 | VertexE|ndClosed|
|00006310| 3b 0a 58 23 20 20 20 65 | 6c 73 65 0a 58 09 66 69 |;.X# e|lse.X.fi|
|00006320| 6c 6c 72 75 6c 65 20 3d | 20 63 70 2d 3e 6f 2e 70 |llrule =| cp->o.p|
|00006330| 6f 6c 79 77 69 6e 64 3f | 57 69 6e 64 69 6e 67 52 |olywind?|WindingR|
|00006340| 75 6c 65 3a 45 76 65 6e | 4f 64 64 52 75 6c 65 3b |ule:Even|OddRule;|
|00006350| 0a 58 09 58 53 65 74 46 | 69 6c 6c 52 75 6c 65 28 |.X.XSetF|illRule(|
|00006360| 73 70 2d 3e 64 2c 73 70 | 2d 3e 67 63 31 2c 66 69 |sp->d,sp|->gc1,fi|
|00006370| 6c 6c 72 75 6c 65 29 3b | 0a 58 09 58 53 65 74 46 |llrule);|.X.XSetF|
|00006380| 69 6c 6c 52 75 6c 65 28 | 73 70 2d 3e 64 2c 73 70 |illRule(|sp->d,sp|
|00006390| 2d 3e 67 63 32 2c 66 69 | 6c 6c 72 75 6c 65 29 3b |->gc2,fi|llrule);|
|000063a0| 0a 58 23 20 20 20 65 6e | 64 69 66 0a 58 20 20 20 |.X# en|dif.X |
|000063b0| 20 69 66 20 28 63 70 2d | 3e 6f 2e 66 69 6c 6c 29 | if (cp-|>o.fill)|
|000063c0| 20 4d 6f 76 65 43 6c 69 | 70 28 73 70 2c 63 70 2c | MoveCli|p(sp,cp,|
|000063d0| 63 70 2d 3e 78 2b 72 2c | 63 70 2d 3e 78 2b 72 29 |cp->x+r,|cp->x+r)|
|000063e0| 3b 0a 58 20 20 20 20 65 | 6c 73 65 20 4d 6f 76 65 |;.X e|lse Move|
|000063f0| 43 6c 69 70 28 73 70 2c | 63 70 2c 73 70 2d 3e 76 |Clip(sp,|cp,sp->v|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.