X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=plugins%2Ftextool%2FTexTool.cpp;h=9ba7b01bffd66abe8f7eaf8d0939f9b88ff884ed;hb=231225d6f97d0b926b2e896e5783cccfbc7c5619;hp=eb519033e1061166787f2973f97379d543514e53;hpb=0975f4af11cca8c722f692c09cb69df514284237;p=xonotic%2Fnetradiant.git diff --git a/plugins/textool/TexTool.cpp b/plugins/textool/TexTool.cpp index eb519033..9ba7b01b 100644 --- a/plugins/textool/TexTool.cpp +++ b/plugins/textool/TexTool.cpp @@ -1,5 +1,5 @@ /* -Copyright (C) 1999-2007 id Software, Inc. and contributors. +Copyright (C) 1999-2006 Id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. @@ -38,7 +38,7 @@ static void dialog_button_callback (GtkWidget *widget, gpointer data) ret = (int*)g_object_get_data (G_OBJECT (parent), "ret"); *loop = 0; - *ret = (int)data; + *ret = gpointer_to_int (data); } static gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data) @@ -182,7 +182,7 @@ CWindowListener g_Listen; // plugin interfaces --------------------------- bool g_bQglInitDone = false; -_QERQglTable g_QglTable; +OpenGLBinding g_QglTable; bool g_bSelectedFaceInitDone = false; _QERSelectedFaceTable g_SelectedFaceTable; bool g_bUITable = false; @@ -533,7 +533,7 @@ static void DoExpose () } // let the control points manager render - g_pManager->Render( ); + g_pManager->render( ); } static bool CanProcess () @@ -821,14 +821,14 @@ extern "C" void QERPlug_Dispatch(const char* p, vec3_t vMin, vec3_t vMax, bool b // if it's the first call, perhaps we need some additional init steps if (!g_bQglInitDone) { - g_QglTable.m_nSize = sizeof(_QERQglTable); + g_QglTable.m_nSize = sizeof(OpenGLBinding); if ( g_FuncTable.m_pfnRequestInterface( QERQglTable_GUID, static_cast(&g_QglTable) ) ) { g_bQglInitDone = true; } else { - Sys_Printf("TexTool plugin: _QERQglTable interface request failed\n"); + Sys_Printf("TexTool plugin: OpenGLBinding interface request failed\n"); return; } } @@ -919,13 +919,8 @@ extern "C" void QERPlug_Dispatch(const char* p, vec3_t vMin, vec3_t vMax, bool b CSynapseServer* g_pSynapseServer = NULL; CSynapseClientTexTool g_SynapseClient; -#if __GNUC__ >= 4 -#pragma GCC visibility push(default) -#endif -extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { -#if __GNUC__ >= 4 -#pragma GCC visibility pop -#endif +extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) +{ if (strcmp(version, SYNAPSE_VERSION)) { Syn_Printf("ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version);