wxMGL update (no, it still doesn't work, I'm backuping it just in case my disk burns)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-08-01 22:57:11 +00:00
parent 57d677d15e
commit a4bbc9f720
14 changed files with 967 additions and 131 deletions

View File

@@ -12,7 +12,6 @@
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/process.h"
#include <stdarg.h>
@@ -26,6 +25,8 @@
#include "wx/unix/execute.h"
#endif
#include "wx/mgl/private.h"
//----------------------------------------------------------------------------
// misc.
//----------------------------------------------------------------------------
@@ -39,20 +40,23 @@ void wxBell()
// display characterstics
// ----------------------------------------------------------------------------
extern MGLDevCtx *g_displayDC;
void wxDisplaySize( int *width, int *height )
void wxDisplaySize(int *width, int *height)
{
wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
if (width) *width = g_displayDC->sizex();
if (height) *height = g_displayDC->sizey();
}
void wxGetMousePosition( int* x, int* y )
void wxGetMousePosition(int* x, int* y)
{
#if 0 // FIXME_MGL
gdk_window_get_pointer( (GdkWindow*) NULL, x, y, (GdkModifierType*) NULL );
#endif
MS_getPos(x, y);
}
wxPoint wxGetMousePosition()
{
wxPoint pt;
wxGetMousePosition(&pt.x, &pt.y);
return pt;
}
bool wxColourDisplay()
@@ -72,7 +76,7 @@ int wxDisplayDepth()
int wxGetOsVersion(int *majorVsn, int *minorVsn)
{
#if 0 // FIXME_MGL
// FIXME_MGL : wxGetOsVersion, too
// FIXME_MGL : fix wxGetOsVersion, too
if (majorVsn) *majorVsn = GTK_MAJOR_VERSION;
if (minorVsn) *minorVsn = GTK_MINOR_VERSION;