Explorar o código

Added WX_UTF8 macro

  The WX_UTF8 macro is primarily for convenience so you can input a
UTF-8 string into a wxWidgets function without having to do
wxString(string, wxConvUTF8) each time.
jp9000 %!s(int64=11) %!d(string=hai) anos
pai
achega
41a73ceeea
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      obs/wx-wrappers.hpp

+ 2 - 0
obs/wx-wrappers.hpp

@@ -23,6 +23,8 @@
 
 #include <vector>
 
+#define WX_UTF8(str) wxString(str, wxConvUTF8)
+
 struct gs_window;
 
 gs_window WxToGSWindow(const wxWindow *window);