[Fix] Not so much as a warning now. Changed Pixmap icon_pixmap to 0 instead of NULL

-- Removed some unused properties.
This commit is contained in:
Rtch90 2012-04-06 05:44:53 +01:00
parent 13cc8cb519
commit ac32876443
3 changed files with 4 additions and 4 deletions

BIN
Bin/LibD

Binary file not shown.

View File

@ -38,4 +38,4 @@ private:
RECT _windowRect; // Window bound. RECT _windowRect; // Window bound.
HINSTANCE _hinstance; // Application instance. HINSTANCE _hinstance; // Application instance.
WNDCLASSEX _windowClass; WNDCLASSEX _windowClass;
} }

View File

@ -127,10 +127,10 @@ bool LGLXWindow::Create(int width, int height, int bpp, bool fullscreen) {
StructureNotifyMask; StructureNotifyMask;
_XSetAttr.override_redirect = False; _XSetAttr.override_redirect = False;
unsigned long windowAttributes = CWBorderPixel | CWColormap | CWEventMask; //unsigned long windowAttributes = CWBorderPixel | CWColormap | CWEventMask;
if(fullscreen) { if(fullscreen) {
windowAttributes = CWBorderPixel | CWColormap | CWEventMask | CWOverrideRedirect; //windowAttributes = CWBorderPixel | CWColormap | CWEventMask | CWOverrideRedirect;
XF86VidModeSwitchToMode(_display, _screenID, modes[bestMode]); XF86VidModeSwitchToMode(_display, _screenID, modes[bestMode]);
XF86VidModeSetViewPort(_display, _screenID, 0, 0); XF86VidModeSetViewPort(_display, _screenID, 0, 0);
@ -151,7 +151,7 @@ bool LGLXWindow::Create(int width, int height, int bpp, bool fullscreen) {
} else { } else {
Atom wmDelete = XInternAtom(_display, "WM_DELETE_WINDOW", True); Atom wmDelete = XInternAtom(_display, "WM_DELETE_WINDOW", True);
XSetWMProtocols(_display, _xWindow, &wmDelete, 1); XSetWMProtocols(_display, _xWindow, &wmDelete, 1);
XSetStandardProperties(_display, _xWindow, title.c_str(), None, NULL, NULL, 0, NULL); XSetStandardProperties(_display, _xWindow, title.c_str(), None, 0, NULL, 0, NULL);
XMapRaised(_display, _xWindow); XMapRaised(_display, _xWindow);
} }