Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion rlutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,14 @@ RLUTIL_INLINE void locate(int x, int y) {
/// Prints the supplied string without advancing the cursor
#ifdef __cplusplus
RLUTIL_INLINE void setString(const RLUTIL_STRING_T & str_) {
#ifdef _UNICODE
std::wstring stemp = std::wstring(str_.begin(), str_.end());
LPCWSTR str = stemp.c_str();
unsigned int len = str_.size();
#else
const char * const str = str_.data();
unsigned int len = str_.size();
unsigned int len = str_.size();
#endif
#else // __cplusplus
RLUTIL_INLINE void setString(RLUTIL_STRING_T str) {
unsigned int len = strlen(str);
Expand Down