Commenting
authorromashin
Sat, 19 Apr 2008 18:34:20 +0300
changeset 16790 d425cc370b0d91c50f3f9d2478c3bf402acd4578
parent 16789 3dc220c1618e1a2c7d5a45f7dba52bddaf5e6bed
child 16791 986c205961ed02dd7d1f9a94ca2d2f52d27e1e65
push id1298
push userpavlov@mozilla.com
push dateSun, 17 Aug 2008 05:03:09 +0000
treeherderautoland@4a506fa751d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone2.0a1pre
Commenting
widget/src/qt/nsWindow.cpp
--- a/widget/src/qt/nsWindow.cpp
+++ b/widget/src/qt/nsWindow.cpp
@@ -138,16 +138,18 @@ nsWindow::GetThebesSurface()
         int width = mWidget->width(), height = mWidget->height();
 
         // Owen Taylor says this is the right thing to do!
         width = PR_MIN(32767, height);
         height = PR_MIN(32767, width);
 
         if (!gfxPlatform::UseGlitz()) {
             qDebug("QT_WIDGET NOT SURE: Func:%s::%d, [%ix%i]\n", __PRETTY_FUNCTION__, __LINE__, width, height);
+            // it works for example from http://www.figuiere.net/hub/blog/?2006/07/29/430-cairo-and-qt3
+            // but only with Qt3, with Qt4 we have same (nothing) result. :(
             mThebesSurface = new gfxXlibSurface
             (mWidget->x11Info().display(),
             (Drawable)mWidget->handle(),
              static_cast<Visual*>(mWidget->x11Info().visual()),
              gfxIntSize(width, height));
 
             // if the surface creation is reporting an error, then
             // we don't have a surface to give back