doh, fix the uint-ness
authorChris Toshok <toshok@novell.com>
Thu, 30 Nov 2006 01:58:44 +0000 (01:58 -0000)
committerChris Toshok <toshok@novell.com>
Thu, 30 Nov 2006 01:58:44 +0000 (01:58 -0000)
svn path=/trunk/mcs/; revision=68723

mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs

index b8faea94c22b3c036e672c37c12bc35e5098069f..2609953829ba4b8d41edd85840a7422b82d4c086 100644 (file)
@@ -345,8 +345,8 @@ namespace System.Windows.Forms.X11Internal {
                                                         out actual_atom, out actual_format, out nitems, out bytes_after, ref prop);
                                
                                if (((long)nitems == 1) && (prop != IntPtr.Zero)) {
-                                       int x11_opacity = Marshal.ReadInt32(prop, 0);
-                                       trans = ((double)x11_opacity) / 0xffffffff;
+                                       uint x11_opacity = (uint)Marshal.ReadInt32(prop, 0);
+                                       trans = ((double)x11_opacity) / (uint)0xffffffff;
                                }
 
                                if (prop != IntPtr.Zero) {