typofixes - https://github.com/vlajos/misspell_fixer
authorVeres Lajos <vlajos@gmail.com>
Mon, 22 Dec 2014 16:27:02 +0000 (16:27 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Mon, 22 Dec 2014 16:27:02 +0000 (16:27 +0000)
(cherry picked from commit c85ed83b848379d49d0869b84ab15851e2df8784)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1731 7f0cb862-5218-0410-a997-914c9d46530a

12 files changed:
ChangeLog
doc/freeglut.html
src/egl/fg_state_egl.c
src/egl/fg_window_egl.c
src/fg_internal.h
src/fg_menu.c
src/fg_structure.c
src/fg_teapot_data.h
src/x11/fg_gamemode_x11.c
src/x11/fg_glutfont_definitions_x11.c
src/x11/fg_state_x11.c
src/x11/fg_state_x11_glx.c

index 2e0d8f7..b181854 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2005-06-30  Sven Panne <sven.panne@aedion.de>
 
        * src/freeglut_main.c: Ooops, forgot to set the current window in the
-         last commit. I'll have to test better before comitting... :-]
+         last commit. I'll have to test better before committing... :-]
        * ChangeLog, src/freeglut_main.c: When a window is iconified, only an
          UnmapNotify is sent, not a VisibilityNotify, so we have to handle the
          window status callback in the former case, too. This fixes bug #763442
 2005-06-02  James Jones <puggles@users.sourceforge.net>
 
        * ChangeLog, configure.ac, src/freeglut_internal.h: 2.4.0 Release
-         Candiate 5
+         Candidate 5
 
 2005-05-26  John F. Fay <john.fay.ctr@eglin.af.mil>
 
        * src/freeglut_gamemode.c: Fixed SF bug #1204256: Off-by-one error in
          X11 mode switching. The code which changes the X11 video mode has an
          off-by-one error, resulting in a wrong mode or segfault. I've
-         refactored the code slighty to make it hopefully clearer what's going
+         refactored the code slightly to make it hopefully clearer what's going
          on and corrected some #ifdefs on the way. Now at least the "One" demo
          works for me.
        * src/freeglut_window.c: Fixed SF bug #1204261: Mini space leak when
        * src/freeglut_joystick.c: Removing an unused function
        * src/freeglut_init.c: Making the \"key repeat\" initialization
          consistent with the rest of its usage; also making the
-         \"initDisplayString\" ever-so-slightly mroe general
+         \"initDisplayString\" ever-so-slightly more general
        * ChangeLog, TODO, src/freeglut_window.c: Updating the ChangeLog and
          TODO files in preparation for the upcoming release
 
        * src/freeglut_callbacks.c: Fixed the bug where glutDisplayFunc() was
          effectively invoking glutPostRedsiplay(). This is wrong on the face of
          it, and may be at root for some of the annoying "timing" issues we've
-         had with redisplay events being called inappopriately.
+         had with redisplay events being called inappropriately.
 
 2004-02-19  rkrolib
 
          functions are modified to respect offscreen status.
          
          (Excepting reshaping windows, there is not much useful interpretation
-         for managment of offscreen areas. Reshaping is possibly more work than
+         for management of offscreen areas. Reshaping is possibly more work than
          it's worth to support, and GLUT specs allow us to ignore the request.)
          
          * Cleanup for "offscreen" windows is a little different than for
 
 2004-01-16  rkrolib
 
-       * src/freeglut_main.c: Ammended a comment on fgCheckJoystickCallback().
+       * src/freeglut_main.c: Amended a comment on fgCheckJoystickCallback().
        * src/freeglut_main.c: Minor style normalizations to minimize the diffs
          between *now* and from before John's changes. No functional changes:
          
        * src/freeglut_main.c, src/freeglut_menu.c, src/freeglut_structure.c:
          Split a few overlong lines.
          
-         Adjusted some spacing in a few spots to be more consistant with
+         Adjusted some spacing in a few spots to be more consistent with
          freeglut style. Including one unindented if() body.
          
          Eliminated a dead variable.
          (which during general display callback handling would result in
          effectively a glutReshapeWindow()).
          
-         The code is now system-dependant. It should be abstracted to a
+         The code is now system-dependent. It should be abstracted to a
          function, but is presently copied in two places. Sorry.
          
          Also, inverted the order of the associated if()/else check (in both
          file.
          
          NOTE: The prior version of the *.dsw file does not in fact have CRs. I
-         thought that it did. For consistancy, I am not putting them in in this
+         thought that it did. For consistency, I am not putting them in in this
          version, either. (At least one person said that his MSVC++ system is
          happy with the current files. If there are problems, we can easily add
          the CRs, but that should be a separate commit...)
        * src/freeglut_menu.c: A first pass over freeglut_menu.c to bring it in
          line with the rest of freeglut's style. Mostly re-indenting and
          splitting long lines. For those that may be concerned: No, I didn't do
-         any more arrangments of the form (CONST == a) rather than (a ==
+         any more arrangements of the form (CONST == a) rather than (a ==
          CONST). (^&
        * progs/demos/Fractals_random/fractals_random.c: Altered the way that
          the {random} value (from 0..3) is chosen.
          
          Previously, it picked out two adjacent bits in the result of rand().
          Unfortunately, these adjacent bits (at least on NetBSD) have a certain
-         amount of dependance. After a period (perhaps a thousand or so?), it
+         amount of dependence. After a period (perhaps a thousand or so?), it
          starts to repeat the pattern of those two bits. (I think; I haven't
          actually tested that directly.) This presumably is locking it into a
          an an N-way attractor on the "snowflake", such that if you zoom in a
          What I've done now is to pick up two widely-spaced bits in a single
          rand() call. (Perhaps we would do as well to pick up something like
          bit #16 from two consecutive rand() calls?) These widely-spaced bits
-         have a lower statistical dependance on one another (if I can get away
+         have a lower statistical dependence on one another (if I can get away
          with using that term for an arithmetic operation; though since stats
          has more to do with sampling and less to do with true randomness, I
          may be safe).
          
          * Don't write a == CONST. Instead, write CONST == a. Or, more
          generally (in C like languages): Avoid putting an lvalue on the
-         left-hand side of an == comparison. (For consistancy, I try to avoid
+         left-hand side of an == comparison. (For consistency, I try to avoid
          lvalues on the left- hand side of any comparison---but == is the most
          notorious.)
          
        * src/freeglut_main.c: Missed a block where one level was 2-space
          indented.
          
-         Nit-picked a few other lines for consistancy.
+         Nit-picked a few other lines for consistency.
 
 2003-11-03  rkrolib
 
        * src/freeglut_window.c: Missed a few say-nothing-new comments in
          fgOpenWindow(). Eeep. Should be better now. (^&
        * src/freeglut_window.c: Cleansed fgCloseWindow(): * say-nothing-new
-         comments axed. * de-TABbed. * Made the white-space to be consistant.
+         comments axed. * de-TABbed. * Made the white-space to be consistent.
        * src/freeglut_window.c: Cleaned up fgOpenWindow(): * Removed TABs. *
-         Made indentation consistant. * Deleted say-nothing-new comments. *
+         Made indentation consistent. * Deleted say-nothing-new comments. *
          Changed an *error*check* from an assert to an if(). (The error-check
          was on window creation; we don't want to lose that if the user
          compiles with asserts deactivated. Also, assert()s really tell us more
          depend upon assert()s never being compiled away to null statements.) *
          Added some XXX comments for things that bear some rumination.
        * src/freeglut_window.c: Cleanup to fgSetWindow(). The usual suspects: *
-         Removed tabs. * Made indentation consistant. * Killed off
+         Removed tabs. * Made indentation consistent. * Killed off
          say-nothing-new comments.
        * src/freeglut_window.c: Cleanup to fgSetupixelFormat(). Should be no
          functional changes.
          
          Code facelift included:
          
-         * Consistant indentation. * Removal of all TABs (there were a bunch).
+         * Consistent indentation. * Removal of all TABs (there were a bunch).
          * Fit to 80 columns.
        * src/freeglut_window.c: There should be no changes to code
          functionality, though a fair bit of little changes to the code
          In short, the code still has some issues, but I think that it's a bit
          better.
          
-         (Oh, I also got rid of oustanding TABs.)
+         (Oh, I also got rid of outstanding TABs.)
        * src/freeglut_structure.c: Eliminated most of the say-nothing-new
          comments.
          
          mode does it. It's not ideal but it works. The glutGet() for the
          window border sizes will also have to be fixed at some point.
        * src/freeglut_window.c: Rewrote glutFullscreen(). It now correctly
-         places the window in X11. It now uses system dependant code for more
+         places the window in X11. It now uses system dependent code for more
          efficient use of windowing system calls.
 
 2003-10-29  rkrolib
          
          I missed a few lines that went past 80 columns. (^&
          
-         Also made formatting more consistant.
+         Also made formatting more consistent.
          
          Added a couple of XXX comments re. FreeBSD vs. general BSD #ifdef's.
        * src/freeglut_joystick.c: Should be entirely superficial changes to
          
          * Fit lines to 80 columns. (It does get tiresome seeing long lines
          forced to break by the right-hand border of windows...(^&) *
-         Eliminated say-nothing-new comments. * Made formatting more consistant
+         Eliminated say-nothing-new comments. * Made formatting more consistent
          in spots. * Eliminated some hard TAB characters.
        * src/freeglut_joystick.c: Added Thierry's change to include
          sys/param.h. This lets us pick out version numbers for OS releases
          
          Cleanup of fghGetConfig(). (One return statement, simpler code.)
          
-         Made glutSetOption() have a more consistant style---and also got its
+         Made glutSetOption() have a more consistent style---and also got its
          lines to stay under 80 columns.
        * src/freeglut_misc.c: Got the last of the say-nothing-new comments in
          freeglut_misc.c.
          was strangely formatted to the point that it seemed completely out of
          place, so I took the liberty of reformatting it. Since I used GNU
          EMACS's <tab> key (which re-indents rather than inserts TAB
-         characters), I had to propogate some indentation changes a little
+         characters), I had to propagate some indentation changes a little
          further than the bare necessity to match up with John's changes. (John
          seems to shoot for 2-space indents, while EMACS (and I, I confess)
          strongly prefer 4-space indents. The code that I was re-indenting had
          
          * Expanded a comment re. some #define macros.
          
-         * Made colors and font choice system dependant. The UNIX freeglut
+         * Made colors and font choice system dependent. The UNIX freeglut
          menus look more like UNIX GLUT menus, now. (This is PURELY a cosmetic
          change. But it achieves better compatibility visually.)
        * src/freeglut_main.c: Cleaned up glutMainLoop() a bit:
          into glutMainLoopEvent() for some reason.
          
          If the X11 code could be tucked into another function,
-         glutMainLoopEvent() could be platform-independant.
+         glutMainLoopEvent() could be platform-independent.
 
 2003-10-26  rkrolib
 
          Removed depth-buffer usage. (Also done for Fractals in previous
          commit...)
        * progs/demos/Fractals/fractals.c: A few minor changes: * glutInit*()
-         calls should preceed glutInit(), per se, generally. This is so that
+         calls should precede glutInit(), per se, generally. This is so that
          glutInit()'s configuration (which picks up on user parameters) can
          override application defaults. * glutInit() should be called before
          ANY attempt to process {argv, argc}. This is because there may be
          this fix).
          
          I did not touch the Microsoft side, because I don't know what their OS
-         does---nor if old GLUT was historically system-dependant about this.
+         does---nor if old GLUT was historically system-dependent about this.
 
 2003-10-08  Eric Sandall
 
          The broad outlines are:
          
          * Color schemes are now in variables, are closer to old GLUT, and are
-         system dependant (as old GLUT did). * You can change the font to any
+         system dependent (as old GLUT did). * You can change the font to any
          bitmapped font more easily, which can aid in finding a better
          approximation. (Old GLUT does not seem to have used a GLUT font for
          the menus, which causes problems for us.) The menus rescale
 
        * configure.in, src/Makefile.am, src/freeglut_glutfont_definitions.c,
          src/freeglut_internal.h: Added autoconf detection for the xf86 vid
-         mode extentions.
+         mode extensions.
 
 2003-08-01  Eric Sandall
 
          freeglut-1.3/freeglut_structure.c, freeglut-1.3/freeglut_window.c,
          genfonts/Makefile.am, genfonts/genfonts.c, genfonts/genstroke.c,
          include/GL/freeglut.h, include/GL/freeglut_internal.h: Removed glib
-         dependancy
+         dependency
        * configure.in, freeglut-1.3/Makefile.am, genfonts/Makefile.am: The
          build system now looks for X.
 
index 7357dea..fc6ca6e 100755 (executable)
@@ -70,7 +70,7 @@ feature hints from opengl-gamedev-l readers have been added.
 
 <p>Somebody (Chris?) hinted me that the stroke fonts can be found in the XFree86
 sources. I browsed through it and -- presto. Now I only need to define the stroke fonts
-structure (should be very similiar to bitmapped one) and write quite a simple parser.
+structure (should be very similar to bitmapped one) and write quite a simple parser.
 
 <p>I've spent the (late) evening doing the init display string parsing and making
 my logics classes homework :) Both is harder than I primarily thought, but fortunately
index c83ec30..cea0405 100644 (file)
@@ -82,7 +82,7 @@ int fghPlatformGlutGetEGL ( GLenum eWhat )
         return fghChooseConfig(&config);
     }
 
-    /* This is system-dependant */
+    /* This is system-dependent */
     case GLUT_WINDOW_FORMAT_ID:
         if( fgStructure.CurrentWindow == NULL )
             return 0;
index 6298032..e00ab9f 100644 (file)
@@ -38,7 +38,7 @@ int fghChooseConfig(EGLConfig* config) {
   if (fgState.MajorVersion >= 2) {
     /*
      * Khronos does not specify a EGL_OPENGL_ES3_BIT outside of the OpenGL extension "EGL_KHR_create_context" and EGL 1.5. There are numerous references on the internet 
-     * that say to use EGL_OPENGL_ES3_BIT (pre-EGL 1.5), followed by many saying they can't find it in any headers. In fact, the offical updated specification for EGL 
+     * that say to use EGL_OPENGL_ES3_BIT (pre-EGL 1.5), followed by many saying they can't find it in any headers. In fact, the official updated specification for EGL 
      * does not have any references to OpenGL ES 3.x. Tests have shown that EGL_OPENGL_ES2_BIT will work with ES 3.x.
      */
     ATTRIB_VAL(EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT);
index c37f1e4..3f0dc42 100644 (file)
@@ -378,7 +378,7 @@ struct tagSFG_Timer
 
 /*
  * A window and its OpenGL context. The contents of this structure
- * are highly dependant on the target operating system we aim at...
+ * are highly dependent on the target operating system we aim at...
  */
 typedef struct tagSFG_Context SFG_Context;
 struct tagSFG_Context
@@ -902,7 +902,7 @@ extern SFG_State fgState;
   }
 
 /*
- * Following definitions are somewhat similiar to GLib's,
+ * Following definitions are somewhat similar to GLib's,
  * but do not generate any log messages:
  */
 #define  freeglut_return_if_fail( expr ) \
@@ -1008,7 +1008,7 @@ void fgEnumSubWindows( SFG_Window* window, FGCBWindowEnumerator enumCallback,
 SFG_Window* fgWindowByHandle( SFG_WindowHandleType hWindow );
 
 /*
- * This function is similiar to the previous one, except it is
+ * This function is similar to the previous one, except it is
  * looking for a specified (sub)window identifier. The function
  * is defined in fg_structure.c file.
  */
index 9d9606d..36b24ce 100644 (file)
@@ -65,7 +65,7 @@
  * These variables are for rendering the freeglut menu items.
  *
  * The choices are fore- and background, with and without h for Highlighting.
- * Old GLUT appeared to be system-dependant for its colors (sigh) so we are
+ * Old GLUT appeared to be system-dependent for its colors (sigh) so we are
  * too.  These variables should be stuffed into global state and initialized
  * via the glutInit*() system.
  */
index 5a6ce95..6fbcc57 100644 (file)
@@ -100,7 +100,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
 
     /*
      * Open the window now. The fgOpenWindow() function is system
-     * dependant, and resides in fg_window.c. Uses fgState.
+     * dependent, and resides in fg_window.c. Uses fgState.
      */
     fgOpenWindow( window, title, positionUse, x, y, sizeUse, w, h, gameMode,
                   (GLboolean)(parent ? GL_TRUE : GL_FALSE) );
@@ -332,7 +332,7 @@ void fgDestroyMenu( SFG_Menu* menu )
  * This function should be called on glutInit(). It will prepare the internal
  * structure of freeglut to be used in the application. The structure will be
  * destroyed using fgDestroyStructure() on glutMainLoop() return. In that
- * case further use of freeglut should be preceeded with a glutInit() call.
+ * case further use of freeglut should be preceded with a glutInit() call.
  */
 void fgCreateStructure( void )
 {
index 055886d..1545344 100644 (file)
@@ -59,7 +59,7 @@
 
  Following this, there is a numbered list of vertices.  Following the
  vertices are, one per line, a list of indices of vertices, describing
- each patch.  The first index in each patch is preceeded by the character
+ each patch.  The first index in each patch is preceded by the character
  "-" to delimit patch index lists.  The patches are all bicubic Bezier
  patches, so there are 16 vertices in each patch, and thus the vertex lists
  are each 16 entries long.  This is analogous to an "indexed polygon", if you
index 3700ccf..35eb455 100644 (file)
@@ -75,7 +75,7 @@ static int xrandr_resize(int xsz, int ysz, int rate, int just_checking)
     XRRScreenConfiguration *xrr_config = 0;
     Status result = -1;
 
-       /* NOTE: we have already determined that XR&R is availble and enabled before calling this */
+       /* NOTE: we have already determined that XR&R is available and enabled before calling this */
 
     XRRQueryVersion(fgDisplay.pDisplay.Display, &ver_major, &ver_minor);
 
@@ -572,7 +572,7 @@ void fgPlatformEnterGameMode( void )
                         * more changes and investigation.
                         */
 
-                       /* Get the current postion of the drawable area on screen */
+                       /* Get the current position of the drawable area on screen */
                        XTranslateCoordinates(
                                fgDisplay.pDisplay.Display,
                                fgStructure.CurrentWindow->Window.Handle,
index f2519c5..bec2037 100644 (file)
@@ -44,7 +44,7 @@
  * freeglut_internal.h uses some GL types, but including the GL header portably
  * is a bit tricky, so we include freeglut_std.h here, which contains the
  * necessary machinery. But this poses another problem, caused by the ugly
- * original defintion of the font constants in "classic" GLUT: They are defined
+ * original definition of the font constants in "classic" GLUT: They are defined
  * as void* externally, so we move them temporarily out of the way by AN EXTREME
  * CPP HACK.
  */
index 2b9f6d4..60906b3 100644 (file)
@@ -79,7 +79,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
     {
 
     /*
-     * Those calls are somewhat similiar, as they use XGetWindowAttributes()
+     * Those calls are somewhat similar, as they use XGetWindowAttributes()
      * function
      */
     case GLUT_WINDOW_X:
index 4688196..1b8dd18 100644 (file)
@@ -94,7 +94,7 @@ int fghPlatformGlutGetGLX ( GLenum eWhat )
         return fghChooseConfig(&config);
     }
 
-    /* This is system-dependant */
+    /* This is system-dependent */
     case GLUT_WINDOW_FORMAT_ID:
         if( fgStructure.CurrentWindow == NULL )
             return 0;