svnno****@sourc*****
svnno****@sourc*****
2011年 8月 13日 (土) 21:46:53 JST
Revision: 4580 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4580 Author: maya Date: 2011-08-13 21:46:53 +0900 (Sat, 13 Aug 2011) Log Message: ----------- 倍率の計算を修正 Modified Paths: -------------- trunk/teraterm/teraterm/vtdisp.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtdisp.c =================================================================== --- trunk/teraterm/teraterm/vtdisp.c 2011-08-13 09:11:06 UTC (rev 4579) +++ trunk/teraterm/teraterm/vtdisp.c 2011-08-13 12:46:53 UTC (rev 4580) @@ -842,10 +842,10 @@ } else if (wi.pattern == BG_FIT_WIDTH) { ratio = (float)CRTWidth / bm.bmWidth; s_width = CRTWidth; - s_height = (int)(CRTHeight * ratio); + s_height = (int)(bm.bmHeight * ratio); } else if (wi.pattern == BG_FIT_HEIGHT) { ratio = (float)CRTHeight / bm.bmHeight; - s_width = (int)(CRTWidth * ratio); + s_width = (int)(bm.bmWidth * ratio); s_height = CRTHeight; } else { s_width = 0;