X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7b296c2f9d9b6dc15be3bbb4d9217829b0a2e32..c393c7402138d8d146f58932e3bcce169fc4fd0d:/src/cocoa/utils.cpp diff --git a/src/cocoa/utils.cpp b/src/cocoa/utils.cpp index 9451eb06c1..320091fbb0 100644 --- a/src/cocoa/utils.cpp +++ b/src/cocoa/utils.cpp @@ -12,6 +12,7 @@ #include "wx/setup.h" #include "wx/utils.h" #include "wx/app.h" +#include "wx/apptrait.h" #include @@ -24,6 +25,10 @@ void wxDisplaySize(int *width, int *height) { // TODO + if(width) + *width = 1024; + if(height) + *height = 768; } void wxDisplaySizeMM(int*,int*) @@ -44,6 +49,15 @@ void wxClientDisplayRect(int *x,int *y,int *width,int *height) *height=768; } +wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() +{ + static wxToolkitInfo info; + info.shortName = _T("cocoa"); + info.name = _T("wxCocoa"); + // TODO: Finish this + return info; +} + // Return TRUE if we have a colour display bool wxColourDisplay() {