GetMacXXXX renamed to MacGetXXXXX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -41,7 +41,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
MacPreControlCreate( parent , id , "" , pos , size ,style & 0xE0FFFFFF /* no borders on mac */ , validator , name , &bounds , title ) ;
|
MacPreControlCreate( parent , id , "" , pos , size ,style & 0xE0FFFFFF /* no borders on mac */ , validator , name , &bounds , title ) ;
|
||||||
|
|
||||||
m_macControl = ::NewControl( parent->GetMacRootWindow() , &bounds , title , false , 0 , 0 , range,
|
m_macControl = ::NewControl( parent->MacGetRootWindow() , &bounds , title , false , 0 , 0 , range,
|
||||||
kControlProgressBarProc , (long) this ) ;
|
kControlProgressBarProc , (long) this ) ;
|
||||||
|
|
||||||
MacPostControlCreate() ;
|
MacPostControlCreate() ;
|
||||||
|
@@ -45,7 +45,7 @@ wxGLContext::wxGLContext(
|
|||||||
{
|
{
|
||||||
m_window = win;
|
m_window = win;
|
||||||
|
|
||||||
m_drawable = (AGLDrawable) UMAGetWindowPort(win->GetMacRootWindow());
|
m_drawable = (AGLDrawable) UMAGetWindowPort(win->MacGetRootWindow());
|
||||||
|
|
||||||
m_glContext = aglCreateContext(fmt, other ? other->m_glContext : NULL);
|
m_glContext = aglCreateContext(fmt, other ? other->m_glContext : NULL);
|
||||||
wxCHECK_RET( m_glContext, wxT("Couldn't create OpenGl context") );
|
wxCHECK_RET( m_glContext, wxT("Couldn't create OpenGl context") );
|
||||||
@@ -216,7 +216,6 @@ bool wxGLCanvas::Create(wxWindow *parent, const wxGLContext *shared, wxWindowID
|
|||||||
const wxPoint& pos, const wxSize& size, long style, const wxString& name,
|
const wxPoint& pos, const wxSize& size, long style, const wxString& name,
|
||||||
int *attribList, const wxPalette& palette)
|
int *attribList, const wxPalette& palette)
|
||||||
{
|
{
|
||||||
m_macEraseOnRedraw = false ;
|
|
||||||
wxWindow::Create( parent, id, pos, size, style, name );
|
wxWindow::Create( parent, id, pos, size, style, name );
|
||||||
|
|
||||||
AGLPixelFormat fmt = ChoosePixelFormat(attribList);
|
AGLPixelFormat fmt = ChoosePixelFormat(attribList);
|
||||||
@@ -252,7 +251,7 @@ void wxGLCanvas::SetViewport()
|
|||||||
int width, height;
|
int width, height;
|
||||||
GetClientSize(& width, & height);
|
GetClientSize(& width, & height);
|
||||||
Rect bounds ;
|
Rect bounds ;
|
||||||
GetWindowPortBounds( GetMacRootWindow() , &bounds ) ;
|
GetWindowPortBounds( MacGetRootWindow() , &bounds ) ;
|
||||||
GLint parms[4] ;
|
GLint parms[4] ;
|
||||||
parms[0] = x ;
|
parms[0] = x ;
|
||||||
parms[1] = bounds.bottom - bounds.top - ( y + height ) ;
|
parms[1] = bounds.bottom - bounds.top - ( y + height ) ;
|
||||||
|
@@ -41,7 +41,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
MacPreControlCreate( parent , id , "" , pos , size ,style & 0xE0FFFFFF /* no borders on mac */ , validator , name , &bounds , title ) ;
|
MacPreControlCreate( parent , id , "" , pos , size ,style & 0xE0FFFFFF /* no borders on mac */ , validator , name , &bounds , title ) ;
|
||||||
|
|
||||||
m_macControl = ::NewControl( parent->GetMacRootWindow() , &bounds , title , false , 0 , 0 , range,
|
m_macControl = ::NewControl( parent->MacGetRootWindow() , &bounds , title , false , 0 , 0 , range,
|
||||||
kControlProgressBarProc , (long) this ) ;
|
kControlProgressBarProc , (long) this ) ;
|
||||||
|
|
||||||
MacPostControlCreate() ;
|
MacPostControlCreate() ;
|
||||||
|
@@ -45,7 +45,7 @@ wxGLContext::wxGLContext(
|
|||||||
{
|
{
|
||||||
m_window = win;
|
m_window = win;
|
||||||
|
|
||||||
m_drawable = (AGLDrawable) UMAGetWindowPort(win->GetMacRootWindow());
|
m_drawable = (AGLDrawable) UMAGetWindowPort(win->MacGetRootWindow());
|
||||||
|
|
||||||
m_glContext = aglCreateContext(fmt, other ? other->m_glContext : NULL);
|
m_glContext = aglCreateContext(fmt, other ? other->m_glContext : NULL);
|
||||||
wxCHECK_RET( m_glContext, wxT("Couldn't create OpenGl context") );
|
wxCHECK_RET( m_glContext, wxT("Couldn't create OpenGl context") );
|
||||||
@@ -216,7 +216,6 @@ bool wxGLCanvas::Create(wxWindow *parent, const wxGLContext *shared, wxWindowID
|
|||||||
const wxPoint& pos, const wxSize& size, long style, const wxString& name,
|
const wxPoint& pos, const wxSize& size, long style, const wxString& name,
|
||||||
int *attribList, const wxPalette& palette)
|
int *attribList, const wxPalette& palette)
|
||||||
{
|
{
|
||||||
m_macEraseOnRedraw = false ;
|
|
||||||
wxWindow::Create( parent, id, pos, size, style, name );
|
wxWindow::Create( parent, id, pos, size, style, name );
|
||||||
|
|
||||||
AGLPixelFormat fmt = ChoosePixelFormat(attribList);
|
AGLPixelFormat fmt = ChoosePixelFormat(attribList);
|
||||||
@@ -252,7 +251,7 @@ void wxGLCanvas::SetViewport()
|
|||||||
int width, height;
|
int width, height;
|
||||||
GetClientSize(& width, & height);
|
GetClientSize(& width, & height);
|
||||||
Rect bounds ;
|
Rect bounds ;
|
||||||
GetWindowPortBounds( GetMacRootWindow() , &bounds ) ;
|
GetWindowPortBounds( MacGetRootWindow() , &bounds ) ;
|
||||||
GLint parms[4] ;
|
GLint parms[4] ;
|
||||||
parms[0] = x ;
|
parms[0] = x ;
|
||||||
parms[1] = bounds.bottom - bounds.top - ( y + height ) ;
|
parms[1] = bounds.bottom - bounds.top - ( y + height ) ;
|
||||||
|
Reference in New Issue
Block a user