← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2133: Respect the font style in chat windows

 

------------------------------------------------------------
revno: 2133
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Tue 2010-05-04 19:44:05 +0200
message:
  Respect the font style in chat windows
modified:
  changelog.txt
  win32/AspectChat.h


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt	2010-05-04 16:37:43 +0000
+++ changelog.txt	2010-05-04 17:44:05 +0000
@@ -10,6 +10,7 @@
 * [L#548743] Fix broken share regression on non-Windows systems (steven sheehy)
 * Fix 'Share hidden files' checkbox value saved to a wrong setting (emtee)
 * [L#562099] Fix encoding problems (poy)
+* [L#556011] Respect the font style in chat windows
 
 -- 0.761 2010-03-14 --
 * [L#533840] Fix crashes with themed menus (poy)

=== modified file 'win32/AspectChat.h'
--- win32/AspectChat.h	2010-04-18 20:39:10 +0000
+++ win32/AspectChat.h	2010-05-04 17:44:05 +0000
@@ -64,12 +64,7 @@
 	virtual ~AspectChat() { }
 
 	tstring formatChatMessage(Client* aClient, const tstring& aLine) {
-		uint32_t color = SETTING(TEXT_COLOR);
-		string prologue =  "{\\urtf1\\ul0\\b0\\i0\n{\\colortbl;\\red" + Util::toString(color & 0xFF) +
-		  "\\green" + Util::toString((color >> 8) & 0xFF) + "\\blue" +
-		  Util::toString((color >> 16) & 0xFF) + ";}\n\\cf1\n";
-
-		return Text::toT(prologue) + chat->rtfEscape(aLine) + Text::toT("}\n");
+		return _T("{\\urtf1\n") + chat->rtfEscape(aLine) + _T("}\n");
 	}
 
 	void addChat(Client* aClient, const tstring& aLine) {