Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 22nd, 2012  |  syntax: None  |  size: 1.44 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/src/x11_fullscreen.c b/src/x11_fullscreen.c
  2. index f7855c4..567ecfc 100644
  3. --- a/src/x11_fullscreen.c
  4. +++ b/src/x11_fullscreen.c
  5. @@ -323,7 +323,7 @@ struct _glfwResolution
  6.  int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount)
  7.  {
  8.      int count, k, l, r, g, b, rgba, gl;
  9. -    int depth, screen;
  10. +    int depth, screen = 0;
  11.      XVisualInfo* vislist;
  12.      XVisualInfo dummy;
  13.      int viscount, rgbcount, rescount;
  14. diff --git a/src/x11_init.c b/src/x11_init.c
  15. index 3ed9ab1..2d5f98c 100644
  16. --- a/src/x11_init.c
  17. +++ b/src/x11_init.c
  18. @@ -470,8 +470,8 @@ static void initGammaRamp(void)
  19.      // RandR gamma support is only available with version 1.2 and above
  20.      if (_glfwLibrary.X11.RandR.available &&
  21.          (_glfwLibrary.X11.RandR.majorVersion > 1 ||
  22. -         _glfwLibrary.X11.RandR.majorVersion == 1 &&
  23. -         _glfwLibrary.X11.RandR.minorVersion >= 2))
  24. +         _glfwLibrary.X11.RandR.majorVersion == 1 ) &&
  25. +         _glfwLibrary.X11.RandR.minorVersion >= 2)
  26.      {
  27.          // FIXME: Assumes that all monitors have the same size gamma tables
  28.          // This is reasonable as I suspect the that if they did differ, it
  29. diff --git a/src/x11_time.c b/src/x11_time.c
  30. index 4184d32..99f747e 100644
  31. --- a/src/x11_time.c
  32. +++ b/src/x11_time.c
  33. @@ -31,6 +31,7 @@
  34.  #include "internal.h"
  35.  
  36.  #include <time.h>
  37. +#include <sys/time.h>
  38.  
  39.  
  40.  //========================================================================