]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
compilation fix for the last check in (sorry)
[wxWidgets.git] / src / stc / PlatWX.cpp
index 8edc3bf5e762385dc47ec701af4e0c0f7a7e51e2..54ba588dd19e910a22f2d20d4a44d595db66d1aa 100644 (file)
@@ -189,6 +189,9 @@ void Font::Create(const char *faceName, int characterSet, int size, bool bold, b
                     false,
                     stc2wx(faceName),
                     encoding);
+#ifdef __WXMAC__
+        ((wxFont*)id)->SetNoAntiAliasing( true ) ;
+#endif
 }
 
 
@@ -804,7 +807,7 @@ void ListBox::Clear() {
 }
 
 void ListBox::Append(char *s) {
-    GETLB(id)->Append(s);
+    GETLB(id)->Append(stc2wx(s));
 }
 
 int ListBox::Length() {
@@ -817,7 +820,7 @@ void ListBox::Select(int n) {
     if (n > 4)
         n = n - 4;
     else
-        n = 1;
+        n = 0;
     GETLB(id)->SetFirstItem(n);
 #endif
 }
@@ -906,6 +909,15 @@ long Platform::SendScintilla(WindowID w,
     return stc->SendMsg(msg, wParam, lParam);
 }
 
+long Platform::SendScintillaPointer(WindowID w,
+                                    unsigned int msg,
+                                    unsigned long wParam,
+                                    void *lParam) {
+
+    wxStyledTextCtrl* stc = (wxStyledTextCtrl*)w;
+    return stc->SendMsg(msg, wParam, (long)lParam);
+}
+
 
 // These are utility functions not really tied to a platform