Explorar o código

x11 Window casting issues

David Rose %!s(int64=16) %!d(string=hai) anos
pai
achega
d95404a8b2

+ 1 - 1
panda/src/glxdisplay/glxGraphicsWindow.cxx

@@ -200,7 +200,7 @@ open_window() {
   if (!_properties.has_parent_window()) {
     root_window = glx_pipe->get_root();
   } else {
-    root_window = (Window) (int) _properties.get_parent_window();
+    root_window = (Window)_properties.get_parent_window();
   }
   
 #ifdef HAVE_GLXFBCONFIG

+ 1 - 1
panda/src/tinydisplay/tinyXGraphicsWindow.cxx

@@ -515,7 +515,7 @@ open_window() {
   if (!_properties.has_parent_window()) {
     root_window = tinyx_pipe->get_root();
   } else {
-    root_window = (Window) (int) _properties.get_parent_window();
+    root_window = (Window)_properties.get_parent_window();
   }
   setup_colormap(visual_info);