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

@ -79,7 +79,7 @@ static void updateModeCursor(_GLFWwindow* window)
[(NSCursor*) _glfw.ns.cursor set]; [(NSCursor*) _glfw.ns.cursor set];
} }
// Enter fullscreen mode // Enter full screen mode
// //
static GLboolean enterFullscreenMode(_GLFWwindow* window) static GLboolean enterFullscreenMode(_GLFWwindow* window)
{ {
@ -95,7 +95,7 @@ static GLboolean enterFullscreenMode(_GLFWwindow* window)
return status; return status;
} }
// Leave fullscreen mode // Leave full screen mode
// //
static void leaveFullscreenMode(_GLFWwindow* window) static void leaveFullscreenMode(_GLFWwindow* window)
{ {
@ -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

@ -202,7 +202,7 @@ static int translateKey(WPARAM wParam, LPARAM lParam)
return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF]; return _glfw.win32.publicKeys[HIWORD(lParam) & 0x1FF];
} }
// Enter fullscreen mode // Enter full screen mode
// //
static GLboolean enterFullscreenMode(_GLFWwindow* window) static GLboolean enterFullscreenMode(_GLFWwindow* window)
{ {
@ -221,7 +221,7 @@ static GLboolean enterFullscreenMode(_GLFWwindow* window)
return status; return status;
} }
// Leave fullscreen mode // Leave full screen mode
// //
static void leaveFullscreenMode(_GLFWwindow* window) static void leaveFullscreenMode(_GLFWwindow* window)
{ {
@ -280,7 +280,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
{ {
if (window->monitor) if (window->monitor)
{ {
// We are running in fullscreen mode, so disallow // We are running in full screen mode, so disallow
// screen saver and screen blanking // screen saver and screen blanking
return 0; return 0;
} }

View File

@ -479,7 +479,7 @@ GLFWAPI void glfwSetWindowPos(GLFWwindow* handle, int xpos, int ypos)
if (window->monitor) if (window->monitor)
{ {
_glfwInputError(GLFW_INVALID_VALUE, _glfwInputError(GLFW_INVALID_VALUE,
"Fullscreen windows cannot be positioned"); "Full screen windows cannot be positioned");
return; return;
} }

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

@ -303,7 +303,7 @@ static GLboolean createWindow(_GLFWwindow* window,
// This is the butcher's way of removing window decorations // This is the butcher's way of removing window decorations
// Setting the override-redirect attribute on a window makes the window // Setting the override-redirect attribute on a window makes the window
// manager ignore the window completely (ICCCM, section 4) // manager ignore the window completely (ICCCM, section 4)
// The good thing is that this makes undecorated fullscreen windows // The good thing is that this makes undecorated full screen windows
// easy to do; the bad thing is that we have to do everything manually // easy to do; the bad thing is that we have to do everything manually
// and some things (like iconify/restore) won't work at all, as those // and some things (like iconify/restore) won't work at all, as those
// are tasks usually performed by the window manager // are tasks usually performed by the window manager
@ -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;
} }
@ -731,7 +731,7 @@ static void pushSelectionToManager(_GLFWwindow* window)
} }
} }
// Enter fullscreen mode // Enter full screen mode
// //
static void enterFullscreenMode(_GLFWwindow* window) static void enterFullscreenMode(_GLFWwindow* window)
{ {
@ -812,8 +812,8 @@ static void enterFullscreenMode(_GLFWwindow* window)
&event); &event);
} }
// Ask the window manager to make the GLFW window a fullscreen window // Ask the window manager to make the GLFW window a full screen window
// Fullscreen windows are undecorated and, when focused, are kept // Full screen windows are undecorated and, when focused, are kept
// on top of all other windows // on top of all other windows
changeWindowState(window, changeWindowState(window,
@ -839,7 +839,7 @@ static void enterFullscreenMode(_GLFWwindow* window)
} }
} }
// Leave fullscreen mode // Leave full screen mode
// //
static void leaveFullscreenMode(_GLFWwindow* window) static void leaveFullscreenMode(_GLFWwindow* window)
{ {
@ -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

@ -1,5 +1,5 @@
//======================================================================== //========================================================================
// Fullscreen anti-aliasing test // Full screen anti-aliasing 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

View File

@ -24,7 +24,7 @@
//======================================================================== //========================================================================
// //
// This program is used to test the gamma correction functionality for // This program is used to test the gamma correction functionality for
// both fullscreen and windowed mode windows // both full screen and windowed mode windows
// //
//======================================================================== //========================================================================

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

@ -24,7 +24,7 @@
//======================================================================== //========================================================================
// //
// This program is used to test the iconify/restore functionality for // This program is used to test the iconify/restore functionality for
// both fullscreen and windowed mode windows // both full screen and windowed mode windows
// //
//======================================================================== //========================================================================

View File

@ -26,7 +26,7 @@
// This test came about as the result of bug #1262773 // This test came about as the result of bug #1262773
// //
// It closes and re-opens the GLFW window every five seconds, alternating // It closes and re-opens the GLFW window every five seconds, alternating
// between windowed and fullscreen mode // between windowed and full screen mode
// //
// It also times and logs opening and closing actions and attempts to separate // It also times and logs opening and closing actions and attempts to separate
// user initiated window closing from its own // user initiated window closing from its own

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