soc.2007.msimprpl: b018bfb9: In msimprpl, when converting point size ...
jeff2 at soc.pidgin.im
jeff2 at soc.pidgin.im
Thu Mar 20 00:25:55 EDT 2008
-----------------------------------------------------------------
Revision: b018bfb95aeaf0bd6b4cc353965bd3431891dec9
Ancestor: bd0e8a231d64a1834cf27ddf420ece1cd9889327
Author: jeff2 at soc.pidgin.im
Date: 2008-03-20T04:21:57
Branch: im.pidgin.soc.2007.msimprpl
URL: http://d.pidgin.im/viewmtn/revision/info/b018bfb95aeaf0bd6b4cc353965bd3431891dec9
Modified files:
libpurple/protocols/myspace/markup.c
ChangeLog:
In msimprpl, when converting point size and MySpaceIM-markup font size,
use the "dpi" preference, if any, instead of "port", which probably only
worked by accident, and may be the cause of #3645.
Closes #5259.
-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/markup.c 4f4b583fac928be713677ed08bd04382a56472ac
+++ libpurple/protocols/myspace/markup.c 949ebca754deed423ad2be285775a3587cf7e627
@@ -181,7 +181,7 @@ msim_height_to_point(MsimSession *sessio
{
guint dpi;
- dpi = purple_account_get_int(session->account, "port", MSIM_DEFAULT_DPI);
+ dpi = purple_account_get_int(session->account, "dpi", MSIM_DEFAULT_DPI);
return (guint)msim_round((POINTS_PER_INCH * 1. / dpi) * height);
@@ -195,7 +195,7 @@ msim_point_to_height(MsimSession *sessio
{
guint dpi;
- dpi = purple_account_get_int(session->account, "port", MSIM_DEFAULT_DPI);
+ dpi = purple_account_get_int(session->account, "dpi", MSIM_DEFAULT_DPI);
return (guint)msim_round((dpi * 1. / POINTS_PER_INCH) * point);
}
More information about the Commits
mailing list