Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
3 deletions.
-
+1
−1
src/client/fontengine.h
-
+2
−2
src/gui/guiChatConsole.cpp
|
@@ -48,7 +48,7 @@ struct FontSpec { |
|
|
|
|
|
u16 getHash() |
|
|
{ |
|
|
return (mode << 2) | (bold << 1) | italic; |
|
|
return (mode << 2) | (static_cast<u8>(bold) << 1) | static_cast<u8>(italic); |
|
|
} |
|
|
|
|
|
unsigned int size; |
|
|
|
@@ -545,7 +545,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event) |
|
|
if (prompt.getCursorLength() <= 0) |
|
|
return true; |
|
|
std::wstring wselected = prompt.getSelection(); |
|
|
std::string selected(wselected.begin(), wselected.end()); |
|
|
std::string selected = wide_to_utf8(wselected); |
|
|
Environment->getOSOperator()->copyToClipboard(selected.c_str()); |
|
|
return true; |
|
|
} |
|
@@ -575,7 +575,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event) |
|
|
if (prompt.getCursorLength() <= 0) |
|
|
return true; |
|
|
std::wstring wselected = prompt.getSelection(); |
|
|
std::string selected(wselected.begin(), wselected.end()); |
|
|
std::string selected = wide_to_utf8(wselected); |
|
|
Environment->getOSOperator()->copyToClipboard(selected.c_str()); |
|
|
prompt.cursorOperation( |
|
|
ChatPrompt::CURSOROP_DELETE, |
|
|