Skip to content

Instantly share code, notes, and snippets.

@johnny2k
Created March 28, 2015 19:42
Show Gist options
  • Save johnny2k/7abb2f54d2ec9444c4bf to your computer and use it in GitHub Desktop.
Save johnny2k/7abb2f54d2ec9444c4bf to your computer and use it in GitHub Desktop.
<icculus> icculus: is there a better way of doing this: https://github.com/3dluvr/UnrealEngine/commit/65572ff2115b400b54aae411be13e80233e7c235#diff-ab99c81ebe9bdbe9ae1adf75e3dd4733R628
<icculus> amigo-: Is the problem that sometimes you don't have a window?
<icculus> amigo-: or are we just giving bogus information sometimes?
* zlsa has quit (Ping timeout: 245 seconds)
<johnny2k> icculus: amigo- went to bed but I think he was asking that question around the time we were discussing a warning we've encountered https://gist.github.com/johnny2k/803f7c671cbf24b48044.
<icculus> johnny2k: that's because the X11 headers aren't included from SDL_video.c, so the compiler is assuming it returns an int, which it doesn't.
<icculus> The "fix" is to include the headers, or move that somewhere under src/video/x11
<icculus> The real fix is not to call Xlib functions directly though. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment