Comment and string spell check pass.

This commit is contained in:
Camilla Berglund 2015-01-05 21:55:15 +01:00
parent 3c70155504
commit 439417a22c
16 changed files with 30 additions and 30 deletions

View File

@ -695,7 +695,7 @@ static NSString* findAppName(void)
// This is nasty, nasty stuff -- calls to undocumented semi-private APIs that // This is nasty, nasty stuff -- calls to undocumented semi-private APIs that
// could go away at any moment, lots of stuff that really should be // could go away at any moment, lots of stuff that really should be
// localize(d|able), etc. Loading a nib would save us this horror, but that // localize(d|able), etc. Loading a nib would save us this horror, but that
// doesn't seem like a good thing to require of GLFW's clients. // doesn't seem like a good thing to require of GLFW users.
// //
static void createMenuBar(void) static void createMenuBar(void)
{ {

View File

@ -112,7 +112,7 @@ typedef struct _GLFWcursor _GLFWcursor;
// Helper macros // Helper macros
//======================================================================== //========================================================================
// Checks for whether the library has been intitalized // Checks for whether the library has been initialized
#define _GLFW_REQUIRE_INIT() \ #define _GLFW_REQUIRE_INIT() \
if (!_glfwInitialized) \ if (!_glfwInitialized) \
{ \ { \
@ -184,7 +184,7 @@ struct _GLFWctxconfig
/*! @brief Framebuffer configuration. /*! @brief Framebuffer configuration.
* *
* This describes buffers and their sizes. It also contains * This describes buffers and their sizes. It also contains
* a platform-specific ID used to map back to the backend API's object. * a platform-specific ID used to map back to the backend API object.
* *
* It is used to pass framebuffer parameters from shared code to the platform * It is used to pass framebuffer parameters from shared code to the platform
* API and also to enumerate and select available framebuffer configs. * API and also to enumerate and select available framebuffer configs.

View File

@ -97,7 +97,7 @@ typedef struct _GLFWlibraryMir
// Mir-specific per-cursor data // Mir-specific per-cursor data
// TODO: Only system cursors are implemented in mir atm. Need to wait for support. // TODO: Only system cursors are implemented in Mir atm. Need to wait for support.
// //
typedef struct _GLFWcursorMir typedef struct _GLFWcursorMir
{ {

View File

@ -168,7 +168,7 @@ int _glfwCreateContext(_GLFWwindow* window,
fbconfig->greenBits + fbconfig->greenBits +
fbconfig->blueBits; fbconfig->blueBits;
// OS X needs non-zero color size, so set resonable values // OS X needs non-zero color size, so set reasonable values
if (colorBits == 0) if (colorBits == 0)
colorBits = 24; colorBits = 24;
else if (colorBits < 15) else if (colorBits < 15)
@ -206,7 +206,7 @@ int _glfwCreateContext(_GLFWwindow* window,
} }
// NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB // NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB
// frambuffer, so there's no need (and no way) to request it // framebuffer, so there's no need (and no way) to request it
ADD_ATTR(0); ADD_ATTR(0);

View File

@ -39,7 +39,7 @@
#if defined(_GLFW_USE_OPTIMUS_HPG) #if defined(_GLFW_USE_OPTIMUS_HPG)
// Applications exporting this symbol with this value will be automatically // Applications exporting this symbol with this value will be automatically
// directed to the high-performance GPU on nVidia Optimus systems // directed to the high-performance GPU on Nvidia Optimus systems
// //
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;

View File

@ -239,7 +239,7 @@ void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
// as (0, 0) // as (0, 0)
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Window position retreival not supported"); "Wayland: Window position retrieval not supported");
} }
void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos)

View File

@ -42,7 +42,7 @@ static int translateKey(int scancode)
{ {
int keySym; int keySym;
// Valid key code range is [8,255], according to the XLib manual // Valid key code range is [8,255], according to the Xlib manual
if (scancode < 8 || scancode > 255) if (scancode < 8 || scancode > 255)
return GLFW_KEY_UNKNOWN; return GLFW_KEY_UNKNOWN;
@ -72,7 +72,7 @@ static int translateKey(int scancode)
default: break; default: break;
} }
// Now try pimary keysym for function keys (non-printable keys). These // Now try primary keysym for function keys (non-printable keys). These
// should not be layout dependent (i.e. US layout and international // should not be layout dependent (i.e. US layout and international
// layouts should give the same result). // layouts should give the same result).
keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0);

View File

@ -543,7 +543,7 @@ static Atom writeTargetToProperty(const XSelectionRequestEvent* request)
if (request->property == None) if (request->property == None)
{ {
// The requestor is a legacy client (ICCCM section 2.2) // The requester is a legacy client (ICCCM section 2.2)
// We don't support legacy clients, so fail here // We don't support legacy clients, so fail here
return None; return None;
} }
@ -950,7 +950,7 @@ static void processEvent(XEvent *event)
{ {
// HACK: Key repeat events will arrive as KeyRelease/KeyPress // HACK: Key repeat events will arrive as KeyRelease/KeyPress
// pairs with similar or identical time stamps // pairs with similar or identical time stamps
// The key repeat logic in _glfwInputKey expectes only key // The key repeat logic in _glfwInputKey expects only key
// presses to repeat, so detect and discard release events // presses to repeat, so detect and discard release events
if (XEventsQueued(_glfw.x11.display, QueuedAfterReading)) if (XEventsQueued(_glfw.x11.display, QueuedAfterReading))
{ {

View File

@ -64,8 +64,8 @@ static void usage(void)
printf(" -f require a forward-compatible context\n"); printf(" -f require a forward-compatible context\n");
printf(" -h show this help\n"); printf(" -h show this help\n");
printf(" -l list all client API extensions after context creation\n"); printf(" -l list all client API extensions after context creation\n");
printf(" -m the major number of the requred client API version\n"); printf(" -m the major number of the required client API version\n");
printf(" -n the minor number of the requred client API version\n"); printf(" -n the minor number of the required client API version\n");
printf(" -p the OpenGL profile to use (" PROFILE_NAME_CORE " or " PROFILE_NAME_COMPAT ")\n"); printf(" -p the OpenGL profile to use (" PROFILE_NAME_CORE " or " PROFILE_NAME_COMPAT ")\n");
printf(" -s the robustness strategy to use (" STRATEGY_NAME_NONE " or " STRATEGY_NAME_LOSE ")\n"); printf(" -s the robustness strategy to use (" STRATEGY_NAME_NONE " or " STRATEGY_NAME_LOSE ")\n");
} }

View File

@ -1,5 +1,5 @@
//======================================================================== //========================================================================
// Multithreading test // Multi-threading test
// Copyright (c) Camilla Berglund <elmindreda@elmindreda.org> // Copyright (c) Camilla Berglund <elmindreda@elmindreda.org>
// //
// This software is provided 'as-is', without any express or implied // This software is provided 'as-is', without any express or implied