]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
textool fix (Markus Fischer)
authortimo <timo@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sat, 2 Jan 2010 16:03:41 +0000 (16:03 +0000)
committertimo <timo@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sat, 2 Jan 2010 16:03:41 +0000 (16:03 +0000)
git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@331 8a3a26a2-13c4-0310-b231-cf6edde360e5

plugins/textool/TexTool.cpp

index eb519033e1061166787f2973f97379d543514e53..ec0fb99f87e560411fde252f38df9455feadb330 100644 (file)
@@ -251,8 +251,6 @@ const char* QERPlug_Init (void* hApp, void *pWidget)
   GtkWidget* pMainWidget = static_cast<GtkWidget*>(pWidget);
 
   g_pMainWnd = pMainWidget;
-  memset(&g_FuncTable, 0, sizeof(_QERFuncTable_1));
-  g_FuncTable.m_nSize = sizeof(_QERFuncTable_1);
   size = (int)((winding_t *)0)->points[MAX_POINTS_ON_WINDING];
   g_pSelectedFaceWinding = (winding_t *)malloc( size );
   memset( g_pSelectedFaceWinding, 0, size );
@@ -939,6 +937,8 @@ extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const
   g_SynapseClient.AddAPI(RADIANT_MAJOR, NULL, sizeof(g_FuncTable), SYN_REQUIRE, &g_FuncTable);
   g_SynapseClient.AddAPI(QGL_MAJOR, NULL, sizeof(g_QglTable), SYN_REQUIRE, &g_QglTable);
   g_SynapseClient.AddAPI(SELECTEDFACE_MAJOR, NULL, sizeof(g_SelectedFaceTable), SYN_REQUIRE, &g_SelectedFaceTable);
+  g_SynapseClient.AddAPI(UI_MAJOR, NULL, sizeof(_QERUITable), SYN_REQUIRE, &g_UITable);
+  g_SynapseClient.AddAPI(APPSURFACEDIALOG_MAJOR, NULL, sizeof(_QERAppSurfaceTable), SYN_REQUIRE, &g_SurfaceTable);
   
   return &g_SynapseClient;
 }