Revision: 55904
          http://sourceforge.net/p/brlcad/code/55904
Author:   vladbogo
Date:     2013-06-30 22:26:50 +0000 (Sun, 30 Jun 2013)
Log Message:
-----------
Added the qt_configureWin_guts function and fixed some initialization issues.

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-06-30 21:56:42 UTC (rev 55903)
+++ brlcad/trunk/src/libdm/dm-qt.cpp    2013-06-30 22:26:50 UTC (rev 55904)
@@ -351,23 +351,23 @@
     "qt",
     "Qt Display",
     DM_TYPE_QT,
-    0,/* top */
+    1,
     0,/* width */
     0,/* height */
     0,/* bytes per pixel */
     0,/* bits per channel */
     0,
     0,
+    1.0,/* aspect ratio */
     0,
-    0,
     {0, 0},
     BU_VLS_INIT_ZERO,          /* bu_vls path name*/
     BU_VLS_INIT_ZERO,          /* bu_vls full name drawing window */
     BU_VLS_INIT_ZERO,          /* bu_vls short name drawing window */
     {0, 0, 0},                 /* bg color */
     {0, 0, 0},                 /* fg color */
-    {0.0, 0.0, 0.0},           /* clipmin */
-    {0.0, 0.0, 0.0},           /* clipmax */
+    {GED_MIN, GED_MIN, GED_MIN},       /* clipmin */
+    {GED_MAX, GED_MAX, GED_MAX},       /* clipmax */
     0,                         /* no debugging */
     0,                         /* no perspective */
     0,                         /* no lighting */
@@ -381,6 +381,13 @@
 };
 
 
+HIDDEN int
+qt_configureWin_guts(struct dm *UNUSED(dmp), int UNUSED(force))
+{
+    return 0;
+}
+
+
 __BEGIN_DECLS
 
 /*
@@ -517,6 +524,12 @@
            dmp->dm_height = dmp->dm_width;
     }
 
+    Tk_GeometryRequest(pubvars->xtkwin, dmp->dm_width, dmp->dm_height);
+
+    Tk_MakeWindowExist(pubvars->xtkwin);
+    pubvars->win = Tk_WindowId(pubvars->xtkwin);
+    dmp->dm_id = pubvars->win;
+
     bu_log("qt_open called\n");
     return dmp;
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to