summaryrefslogtreecommitdiff
path: root/XCBConnectionOfDisplay.mdwn
diff options
context:
space:
mode:
authorTravis Spencer <tspencer@cs.pdx.edu>2005-07-31 00:46:10 -0800
committerTravis Spencer <tspencer@cs.pdx.edu>2005-07-31 00:46:10 -0800
commit89ca2d833d9cf0288d81c5a6d2612d068f94cc7e (patch)
treef8e5c955915f96e7152c0dad386081db1a96e3ef /XCBConnectionOfDisplay.mdwn
parentd0ed6841cd783fbc3df5dac0b5644ac0d1225ded (diff)
XCBConnectionOfDisplay
Diffstat (limited to 'XCBConnectionOfDisplay.mdwn')
-rw-r--r--XCBConnectionOfDisplay.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/XCBConnectionOfDisplay.mdwn b/XCBConnectionOfDisplay.mdwn
index 4772268..08a563a 100644
--- a/XCBConnectionOfDisplay.mdwn
+++ b/XCBConnectionOfDisplay.mdwn
@@ -59,10 +59,10 @@ Some salient points in this example include the following:
- The only header that is included is `xcl.h`. The headers `Xlib.h` nor `xcb.h` are included, yet Xlib and XCB functions are used. This is because `xcl.h` includes `xcb.h` and `Xlib.h`.
- The standard Xlib function `XOpenDisplay` is used to create a Display object.
-- The `Disply` object is cast to an `XCBConnection` object using `XCBConnectionOfDisplay`.
+- The `Display` object is cast to an `XCBConnection` object using `XCBConnectionOfDisplay`.
- After the cast, the connection is passed to various other XCB functions.
-Though this example is contrived, it is helpful and useful when porting. For example, say you have some function that takes a `Display` object. You can leave the prototype unchanged, in the body of the function cast it to an `XCBConnection`, and port only that function. The rest of the code can remain unchanged. In this way, the process of converting the application to use XCB is staggered as necessary, time, knowledge, and knowledge permit.
+Though this example is contrived, `XCBConnectionOfDisplay` is an esential part of the porting process. For example, say you have some function that takes a `Display` object. You can leave the prototype unchanged, in the body of the function cast it to an `XCBConnection`, and port only that function. The rest of the code can remain unchanged. In this way, the process of converting the application to use XCB is staggered as necessary, time, knowledge, and knowledge permit.
## See Also