]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/multimon/multimon_test.cpp
use wxDC::GetMultiLineTextExtent() instead of duplicating its code in wxButton::DoGet...
[wxWidgets.git] / samples / multimon / multimon_test.cpp
index abd36929a7fb424065dd3ca47d6b5d626b1f21d9..3ddf4e93b451c09a6d319c8c85453fa69348ab7e 100644 (file)
@@ -24,9 +24,9 @@ bool TestApp::OnInit()
 {
   bool is_use_display = 
                         #if wxUSE_DISPLAY
-                        TRUE
+                        true
                         #else
-                        FALSE
+                        false
                         #endif
                         ;
   if( !is_use_display )
@@ -45,10 +45,10 @@ bool TestApp::OnInit()
                wxRect r = display.GetGeometry();
       wxLogDebug ( _T("Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits"),
                        i, display.GetName().c_str(), r.GetLeft(), r.GetTop(), r.GetWidth(), r.GetHeight(),
-                       display.GetDepth() );
+                       display.GetCurrentMode().GetDepth() );
                i++;
        }
   }
   #endif
-       return FALSE;
+       return false;
 }