Author: mir3x
Date: Sat Oct 15 00:46:53 2016
New Revision: 34137

URL: http://svn.gna.org/viewcvs/freeciv?rev=34137&view=rev
Log:
Qt client - faster map redraw

See patch #7828


Modified:
    trunk/client/gui-qt/mapview.cpp
    trunk/client/gui-qt/sidebar.cpp

Modified: trunk/client/gui-qt/mapview.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapview.cpp?rev=34137&r1=34136&r2=34137&view=diff
==============================================================================
--- trunk/client/gui-qt/mapview.cpp     (original)
+++ trunk/client/gui-qt/mapview.cpp     Sat Oct 15 00:46:53 2016
@@ -222,6 +222,7 @@
 {
   cursor = -1;
   QTimer *timer = new QTimer(this);
+  setAttribute(Qt::WA_OpaquePaintEvent, true);
   connect(timer, SIGNAL(timeout()), this, SLOT(timer_event()));
   timer->start(200);
   resize(0, 0);
@@ -497,6 +498,7 @@
 minimap_view::minimap_view(QWidget *parent) : fcwidget()
 {
   setParent(parent);
+  setAttribute(Qt::WA_OpaquePaintEvent, true);
   w_ratio = 0.0;
   h_ratio = 0.0;
   // Dark magic: This call is required for the widget to work.

Modified: trunk/client/gui-qt/sidebar.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/sidebar.cpp?rev=34137&r1=34136&r2=34137&view=diff
==============================================================================
--- trunk/client/gui-qt/sidebar.cpp     (original)
+++ trunk/client/gui-qt/sidebar.cpp     Sat Oct 15 00:46:53 2016
@@ -430,6 +430,7 @@
 ***************************************************************************/
 fc_sidebar::fc_sidebar()
 {
+  setAttribute(Qt::WA_OpaquePaintEvent, true);
   sidebar_img = nullptr;
   layout = new QVBoxLayout;
   layout->setContentsMargins(0, 0, 0, 0);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to