[Scummvm-cvs-logs] SF.net SVN: scummvm: [28139] scummex/branches/gsoc2007-gameresbrowser/src/ plugins/basic/CHexEditCtrl.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Jul 18 18:36:21 CEST 2007


Revision: 28139
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28139&view=rev
Author:   fingolfin
Date:     2007-07-18 09:36:21 -0700 (Wed, 18 Jul 2007)

Log Message:
-----------
Fix compilation

Modified Paths:
--------------
    scummex/branches/gsoc2007-gameresbrowser/src/plugins/basic/CHexEditCtrl.cpp

Modified: scummex/branches/gsoc2007-gameresbrowser/src/plugins/basic/CHexEditCtrl.cpp
===================================================================
--- scummex/branches/gsoc2007-gameresbrowser/src/plugins/basic/CHexEditCtrl.cpp	2007-07-18 16:14:40 UTC (rev 28138)
+++ scummex/branches/gsoc2007-gameresbrowser/src/plugins/basic/CHexEditCtrl.cpp	2007-07-18 16:36:21 UTC (rev 28139)
@@ -903,8 +903,12 @@
 			if ( !EnterNumber())
 				return;
 
+#if wxUSE_UNICODE
 			wxChar wChar = _event.GetUnicodeKey();
 			m_data[m_editPos] = wxByte(nChar);
+#else
+			m_data[m_editPos] = _event.GetKeyCode();
+#endif
 
 			if (NormalizeEditPos())
 				Refresh(true);			// cursor was outside visible area
@@ -1203,7 +1207,7 @@
 		return;
 	}
 
-	wxWX2MBbuf buffer;
+	const wxWX2MBbuf buffer;
 	wxByte* data;
 	size_t cbData = 0;
 	if (bIsBinaryData) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list