From 41a73ceeeaa06924e7881488c7bb67fa028f8c4c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 4 Jan 2014 13:50:16 -0700 Subject: [PATCH] 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. --- obs/wx-wrappers.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obs/wx-wrappers.hpp b/obs/wx-wrappers.hpp index 31522d907..c952d1d96 100644 --- a/obs/wx-wrappers.hpp +++ b/obs/wx-wrappers.hpp @@ -23,6 +23,8 @@ #include +#define WX_UTF8(str) wxString(str, wxConvUTF8) + struct gs_window; gs_window WxToGSWindow(const wxWindow *window);