Browse Source

Small cleanup, fixed small typo.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
54f3dc3d99
  1. 2
      src/Contexts/EglContext.cpp
  2. 2
      src/Contexts/Sdl2Context.h

2
src/Contexts/EglContext.cpp

@ -73,7 +73,7 @@ EglContext::EglContext(int&, char**, const string& title, const Math::Vector2<GL
XSetWindowAttributes attr;
attr.background_pixel = 0;
attr.border_pixel = 0;
attr.colormap = XCreateColormap( xDisplay, root, visInfo->visual, AllocNone);
attr.colormap = XCreateColormap(xDisplay, root, visInfo->visual, AllocNone);
attr.event_mask = StructureNotifyMask|ExposureMask|KeyPressMask;
unsigned long mask = CWBackPixel|CWBorderPixel|CWColormap|CWEventMask;
xWindow = XCreateWindow(xDisplay, root, 20, 20, size.x(), size.y(), 0, visInfo->depth, InputOutput, visInfo->visual, mask, &attr);

2
src/Contexts/Sdl2Context.h

@ -100,7 +100,7 @@ class Sdl2Context: public AbstractContext {
/**
* @brief Key release event
* @param key Key release
* @param key Key released
*/
virtual void keyReleaseEvent(Key key);

Loading…
Cancel
Save