]> git.sesse.net Git - vlc/commitdiff
Do not assume long integers are 32-bits.
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 12 Jan 2007 17:16:21 +0000 (17:16 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 12 Jan 2007 17:16:21 +0000 (17:16 +0000)
Should fix fullscreen on amd64 - closes #670

modules/gui/skins2/x11/x11_window.cpp

index e39a09de24fac05ecc50fd220ecc405265628205..8ee0b069959727a6d6b55b3604a59b73177ed3dc 100644 (file)
@@ -73,18 +73,18 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
 
     // Changing decorations
     struct {
-        unsigned long flags;
-        unsigned long functions;
-        unsigned long decorations;
-        long input_mode;
-        unsigned long status;
+        uint32_t flags;
+        uint32_t functions;
+        uint32_t decorations;
+        int32_t  input_mode;
+        uint32_t status;
     } motifWmHints;
     Atom hints_atom = XInternAtom( XDISPLAY, "_MOTIF_WM_HINTS", False );
     motifWmHints.flags = 2;    // MWM_HINTS_DECORATIONS;
     motifWmHints.decorations = 0;
     XChangeProperty( XDISPLAY, m_wnd, hints_atom, hints_atom, 32,
                      PropModeReplace, (unsigned char *)&motifWmHints,
-                     sizeof( motifWmHints ) / sizeof( long ) );
+                     sizeof( motifWmHints ) / sizeof( uint32_t ) );
 
     // Drag & drop
     if( m_dragDrop )