* gtk2_api.cpp: Various gtk2-specific functions
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: gtk2_api.cpp,v 1.7 2003/04/15 20:33:58 karibu Exp $
+ * $Id: gtk2_api.cpp,v 1.8 2003/04/15 20:54:58 karibu Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
//---------------------------------------------------------------------------
void OSAPI_GetMousePos( int &x, int &y )
{
-/* LPPOINT MousePos = new POINT;
- GetCursorPos( MousePos );
- x = MousePos->x;
- y = MousePos->y;
- delete MousePos;*/
+ gdk_window_get_pointer( gdk_get_default_root_window(), &x, &y, NULL );
}
//---------------------------------------------------------------------------
string OSAPI_GetWindowTitle( Window *win )
* gtk2_event.cpp: GTK2 implementation of the Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: gtk2_event.cpp,v 1.6 2003/04/15 20:33:58 karibu Exp $
+ * $Id: gtk2_event.cpp,v 1.7 2003/04/15 20:54:58 karibu Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
{
OSAPI_PostMessage( *win, Message, Param1, Param2 );
PostSynchroMessage();
+ return true;
}
}
+ OSAPI_PostMessage( NULL, Message, Param1, Param2 );
+ return true;
}
- OSAPI_PostMessage( NULL, Message, Param1, Param2 );
- return true;
+ return false;
}
//---------------------------------------------------------------------------
bool GTK2Event::IsEqual( Event *evt )