Index: /trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h	(revision 54104)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h	(revision 54105)
@@ -1350,12 +1350,14 @@
         mUsesGuestVram(true) {}
 
-    VBoxFBSizeInfo(ulong aPixelFormat, uchar *aVRAM,
+    VBoxFBSizeInfo(UIVisualStateType visualState,
+                   ulong aPixelFormat, uchar *aVRAM,
                    ulong aBitsPerPixel, ulong aBytesPerLine,
                    ulong aWidth, ulong aHeight,
+                   double dScaleFactor, const QSize &scaledSize, bool fUseUnscaledHiDPIOutput,
                    bool bUsesGuestVram) :
-        m_visualState(UIVisualStateType_Invalid),
+        m_visualState(visualState),
         mPixelFormat(aPixelFormat), mVRAM(aVRAM), mBitsPerPixel(aBitsPerPixel),
         mBytesPerLine(aBytesPerLine), mWidth(aWidth), mHeight(aHeight),
-        m_dScaleFactor(1.0), m_scaledSize(QSize()), m_fUseUnscaledHiDPIOutput(false),
+        m_dScaleFactor(dScaleFactor), m_scaledSize(scaledSize), m_fUseUnscaledHiDPIOutput(fUseUnscaledHiDPIOutput),
         mUsesGuestVram(bUsesGuestVram) {}
 
@@ -1913,4 +1915,11 @@
     }
 
+    void performRescale()
+    {
+        UIFrameBuffer::performRescale();
+        mOverlay.onResizeEventPostprocess(VBoxFBSizeInfo(this),
+                QPoint(mpView->contentsX(), mpView->contentsY()));
+    }
+
     void viewportResized (QResizeEvent * re)
     {
