Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h	(revision 35447)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h	(revision 35448)
@@ -6,5 +6,5 @@
 
 /*
- * Copyright (C) 2010 Oracle Corporation
+ * Copyright (C) 2010-2011 Oracle Corporation
  *
  * This file is part of VirtualBox Open Source Edition (OSE), as
@@ -236,6 +236,6 @@
     UIMachineView *m_pMachineView;
     RTCRITSECT m_critSect;
-    int m_width;
-    int m_height;
+    ulong m_width;
+    ulong m_height;
     QSize m_scaledSize;
     int64_t m_WinId;
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQImage.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQImage.cpp	(revision 35447)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQImage.cpp	(revision 35448)
@@ -7,5 +7,5 @@
 
 /*
- * Copyright (C) 2010 Oracle Corporation
+ * Copyright (C) 2010-2011 Oracle Corporation
  *
  * This file is part of VirtualBox Open Source Edition (OSE), as
@@ -93,5 +93,5 @@
     QPainter painter(m_pMachineView->viewport());
 
-    if (r.width() < m_width * 2 / 3)
+    if ((ulong)r.width() < m_width * 2 / 3)
     {
         /* This method is faster for narrow updates */
