Revision: 56359
http://sourceforge.net/p/brlcad/code/56359
Author: vladbogo
Date: 2013-07-30 20:21:32 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
Repaint the window each time drawEnd is called to prevent lag between events
and updates.
Modified Paths:
--------------
brlcad/trunk/src/libdm/dm-qt.cpp
Modified: brlcad/trunk/src/libdm/dm-qt.cpp
===================================================================
--- brlcad/trunk/src/libdm/dm-qt.cpp 2013-07-30 20:13:20 UTC (rev 56358)
+++ brlcad/trunk/src/libdm/dm-qt.cpp 2013-07-30 20:21:32 UTC (rev 56359)
@@ -39,6 +39,13 @@
#include "dm.h"
#include "dm_xvars.h"
+HIDDEN bool
+qt_sendRepaintEvent(struct dm *dmp)
+{
+ struct qt_vars *privars = (struct qt_vars *)dmp->dm_vars.priv_vars;
+ QEvent e(QEvent::UpdateRequest);
+ return privars->qapp->sendEvent(privars->win, &e);
+}
/*
* Q T _ C L O S E
*
@@ -94,6 +101,7 @@
privars->painter->end();
delete privars->painter;
privars->painter = NULL;
+ qt_sendRepaintEvent(dmp);
dmp->dm_processEvents(dmp);
bu_log("qt_drawEnd called\n");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits