64 bit fixes

This commit is contained in:
Adam D. Ruppe 2014-10-30 22:57:49 -04:00
parent 90b3b083de
commit 20c3c49d66
1 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ version(X11) {
selectionEvent.property, selectionEvent.property,
event.target, event.target,
8 /* bits */, 0 /* PropModeReplace */, 8 /* bits */, 0 /* PropModeReplace */,
text.ptr, text.length); text.ptr, cast(int) text.length);
} else if(event.target == GetAtom!"UTF8_STRING"(display)) { } else if(event.target == GetAtom!"UTF8_STRING"(display)) {
selectionEvent.property = event.property; selectionEvent.property = event.property;
XChangeProperty (display, XChangeProperty (display,
@ -227,7 +227,7 @@ version(X11) {
selectionEvent.property, selectionEvent.property,
event.target, event.target,
8 /* bits */, 0 /* PropModeReplace */, 8 /* bits */, 0 /* PropModeReplace */,
text.ptr, text.length); text.ptr, cast(int) text.length);
} else { } else {
selectionEvent.property = None; // I don't know how to handle this type... selectionEvent.property = None; // I don't know how to handle this type...
} }
@ -1444,7 +1444,7 @@ class SimpleWindow {
32 /* bits */, 32 /* bits */,
0 /*PropModeReplace*/, 0 /*PropModeReplace*/,
buffer.ptr, buffer.ptr,
buffer.length); cast(int) buffer.length);
// also setting a pixmap up for compatibility with older window managers // also setting a pixmap up for compatibility with older window managers
// these do a pixmap and a mask // these do a pixmap and a mask
@ -1493,7 +1493,7 @@ class SimpleWindow {
Pixmap.sizeof * 8 /* bits */, Pixmap.sizeof * 8 /* bits */,
0 /*PropModeReplace*/, 0 /*PropModeReplace*/,
pixmapsHolder.ptr, pixmapsHolder.ptr,
pixmapsHolder.length); cast(int) pixmapsHolder.length);
if(oldOnes[0]) if(oldOnes[0])
XFreePixmap(XDisplayConnection.get, oldOnes[0]); XFreePixmap(XDisplayConnection.get, oldOnes[0]);