{
int type; /* of event */
unsigned long serial; /* # of last request processed by server */
- Bool send_event; /* true if this came frome a SendEvent request */
+ Bool send_event; /* true if this came from a SendEvent request */
Display *display; /* Display the event was read from */
Window window; /* window of event */
Time time; /* server timestamp when event happened */
c = XGetXCBConnection(glx_dpy->dpy);
- /* Depending on the GLX verion and the available extensions on the server,
+ /* Depending on the GLX version and the available extensions on the server,
* send the correct "flavor" of protocol to the server.
*
* THE ORDER IS IMPORTANT. We want to send the most recent version of the
/* Check Xlib is running in thread safe mode
*
* 'lock_fns' is the XLockDisplay function pointer of the X11 display 'dpy'.
- * It wll be NULL if XInitThreads wasn't called.
+ * It will be NULL if XInitThreads wasn't called.
*/
return pcp->psc->dpy->lock_fns != NULL;
}
* in the buffer to be filled. \c limit is described above in the buffer
* slop discussion.
*
- * Commands that require large amounts of data to be transfered will
+ * Commands that require large amounts of data to be transferred will
* also use this buffer to hold a header that describes the large
* command.
*
/**
* This implementation uses a smaller threshold for switching
- * to the RenderLarge protocol than the protcol requires so that
+ * to the RenderLarge protocol than the protocol requires so that
* large copies don't occur.
*/
#define __GLX_RENDER_CMD_SIZE_LIMIT 4096
}
-/* There's some trickly language in the GLX spec about how this is supposed
+/* There's some tricky language in the GLX spec about how this is supposed
* to work. Basically, if a given component size is either not specified
- * or the requested size is zero, it is supposed to act like PERFER_SMALLER.
+ * or the requested size is zero, it is supposed to act like PREFER_SMALLER.
* Well, that's really hard to do with the code as-is. This behavior is
* closer to correct, but still not technically right.
*/
* \param dpy Display whose refresh rate is to be determined.
* \param drawable Drawable whose refresh rate is to be determined.
* \param numerator Numerator of the refresh rate.
- * \param demoninator Denominator of the refresh rate.
+ * \param denominator Denominator of the refresh rate.
* \return If the refresh rate for the specified display and drawable could
* be calculated, True is returned. Otherwise False is returned.
*
*
* \param count Number of structures to allocate.
* \returns A pointer to the first element in a linked list of \c count
- * stuctures on success, or \c NULL on failure.
+ * structures on success, or \c NULL on failure.
*/
_X_HIDDEN struct glx_config *
glx_config_create_list(unsigned count)
glxSendClientInfo(dpyPriv, -1);
- /* Grab the lock again and add the dispay private, unless somebody
+ /* Grab the lock again and add the display private, unless somebody
* beat us to initializing on this display in the meantime. */
_XLockMutex(_Xglobal_lock);
* This is the GL 1.1 DrawArrays protocol. The only difference between GL
* 1.1 and EXT_vertex_arrays is the opcode used for the DrawArrays command.
* This protocol is called "old" because the ARB is in the process of
- * defining a new protocol, which will probably be called wither "new" or
+ * defining a new protocol, which will probably be called either "new" or
* "vbo", to support multiple texture coordinate arrays, generic attributes,
* and vertex buffer objects.
*
/**
* Emit a \c glDrawArrays command using the "none" protocol. That is,
- * emit immediate-mode commands that are equivalent to the requiested
+ * emit immediate-mode commands that are equivalent to the requested
* \c glDrawArrays command. This is used with servers that don't support
* the OpenGL 1.1 / EXT_vertex_arrays DrawArrays protocol or in cases where
* vertex state is enabled that is not compatible with that protocol.
/* Calculate the number of data packets that will be required to send
- * the whole command. To do this, the number of verticies that
+ * the whole command. To do this, the number of vertices that
* will fit in a single buffer must be calculated.
*
* The important value here is elements_per_request. This is the
* number of complete array elements that will fit in a single
* buffer. There may be some wasted space at the end of the buffer,
- * but splitting elements across buffer boundries would be painful.
+ * but splitting elements across buffer boundaries would be painful.
*/
elements_per_request[0] = maxSize / single_vertex_size;
struct array_state *a;
- /* Texture coordinate arrays have an implict index set when the
+ /* Texture coordinate arrays have an implicit index set when the
* application calls glClientActiveTexture.
*/
if (key == GL_TEXTURE_COORD_ARRAY) {
/**
- * Array state that is pushed / poped by \c glPushClientAttrib and
+ * Array state that is pushed / popped by \c glPushClientAttrib and
* \c glPopClientAttrib.
*/
struct array_stack_state
/**
* Is the cache of ARRAY_INFO data valid? The cache can become invalid
- * when one of several state changes occur. Among these chages are
+ * when one of several state changes occur. Among these changes are
* modifying the array settings for an enabled array and enabling /
* disabling an array.
*/
/*
** Copy bitmap data from clients packed memory applying unpacking modes as the
-** data is transfered into the destImage buffer. Return in modes the
+** data is transferred into the destImage buffer. Return in modes the
** set of pixel modes that are to be done by the server.
*/
static void
* \file indirect_api.cpp
* Validate the generated code in indirect_init.c
*
- * Tests various apsects of the dispatch table generated by
+ * Tests various aspects of the dispatch table generated by
* \c __glXNewIndirectAPI.
*
* * No entry in the table should be \c NULL.
{
const unsigned entries = _glapi_get_dispatch_table_size();
- /* There should not be any NULL entries in the dispatch table. All entires
+ /* There should not be any NULL entries in the dispatch table. All entries
* should either point to a real implementation or to a no-op function.
*/
for (unsigned i = 0; i < entries; i++) {
* for each GLX attribute value.
*
* \note
- * This test does \b not perform any checking for invalid GLX attribte values.
+ * This test does \b not perform any checking for invalid GLX attribute values.
* Other unit tests verify that invalid values are filtered before
* dri2_query_renderer_string is called.
*/
* for each GLX attribute value.
*
* \note
- * This test does \b not perform any checking for invalid GLX attribte values.
+ * This test does \b not perform any checking for invalid GLX attribute values.
* Other unit tests verify that invalid values are filtered before
* dri2_query_renderer_integer is called.
*/
{
int type; /* of event */
unsigned long serial; /* # of last request processed by server */
- Bool send_event; /* true if this came frome a SendEvent request */
+ Bool send_event; /* true if this came from a SendEvent request */
Display *display; /* Display the event was read from */
Window window; /* window of event */
Time time; /* server timestamp when event happened */