Commit b1144a86 authored by Wayne Stambaugh's avatar Wayne Stambaugh Committed by Maciej Suminski

wxWidgets 2.8.12 build fix

parent 3412e827
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <gal/definitions.h> #include <gal/definitions.h>
#include <wx/log.h> #include <wx/log.h>
#include <macros.h>
#ifndef CALLBACK #ifndef CALLBACK
#define CALLBACK #define CALLBACK
...@@ -256,8 +257,8 @@ void OPENGL_GAL::initGlew() ...@@ -256,8 +257,8 @@ void OPENGL_GAL::initGlew()
} }
else else
{ {
wxLogDebug( wxString( "Status: Using GLEW " ) + wxLogDebug( wxString( wxT( "Status: Using GLEW " ) ) +
wxString::FromUTF8( (char*) glewGetString( GLEW_VERSION ) ) ); FROM_UTF8( (char*) glewGetString( GLEW_VERSION ) ) );
} }
// Check the OpenGL version (minimum 2.1 is required) // Check the OpenGL version (minimum 2.1 is required)
......
...@@ -429,7 +429,7 @@ void VIEW::redrawRect( const BOX2I& aRect ) ...@@ -429,7 +429,7 @@ void VIEW::redrawRect( const BOX2I& aRect )
prof_end( &totalCycles ); prof_end( &totalCycles );
prof_end( &totalRealTime ); prof_end( &totalRealTime );
wxLogDebug( "Redraw::items %d (%d cached), %.1f ms/frame (%.0f FPS), draw/geometry ratio: %.1f%%", wxLogDebug( wxT( "Redraw::items %d (%d cached), %.1f ms/frame (%.0f FPS), draw/geometry ratio: %.1f%%" ),
totalItems, totalCached, (double) totalRealTime.value / 1000.0, totalItems, totalCached, (double) totalRealTime.value / 1000.0,
1000000.0 / (double) totalRealTime.value, 1000000.0 / (double) totalRealTime.value,
(double) totalDrawTime / (double) totalCycles.value * 100.0 ); (double) totalDrawTime / (double) totalCycles.value * 100.0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment