Revision: 9964 https://osdn.net/projects/ttssh2/scm/svn/commits/9964 Author: nmaya Date: 2022-05-27 17:50:17 +0900 (Fri, 27 May 2022) Log Message: ----------- SSH 接続中に解像度を変えると ttermpro.exe のアイコンがセットされる問題を修正 常に ttermpro.exe のインスタンスハンドルを渡していた(r9930で混入) Modified Paths: -------------- branches/adjust_icon/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: branches/adjust_icon/teraterm/teraterm/vtwin.cpp =================================================================== --- branches/adjust_icon/teraterm/teraterm/vtwin.cpp 2022-05-24 14:21:57 UTC (rev 9963) +++ branches/adjust_icon/teraterm/teraterm/vtwin.cpp 2022-05-27 08:50:17 UTC (rev 9964) @@ -442,7 +442,7 @@ icon_id = (ts.PluginVTIconID != 0) ? ts.PluginVTIconID : (ts.VTIcon != IdIconDefault) ? ts.VTIcon : IDI_VT; - TTSetIcon(m_hInst, m_hWnd, MAKEINTRESOURCEW(icon_id), 0); + TTSetIcon(inst, m_hWnd, MAKEINTRESOURCEW(icon_id), 0); // \x92ʒm\x97̈\xE6\x82̃A\x83C\x83R\x83\x93 // Windows 2000 \x82̃^\x83X\x83N\x83g\x83\x8C\x83C\x83A\x83C\x83R\x83\x93\x82\xCD 4bit \x82̂ݑΉ\x9E\x82Ȃ̂ŁAID \x82\xF0\x95ۑ\xB6\x82\xB5\x82Ă\xA8\x82\xA2\x82ĕ\\x8E\xA6\x82̂Ƃ\xAB\x82ɓǂݍ\x9E\x82\xF1\x82ł\xE0\x82炤 @@ -5060,11 +5060,11 @@ { HINSTANCE inst; WORD icon_id; - inst = (ts.PluginVTIconInstance != NULL) ? ts.PluginVTIconInstance : hInst; + inst = (ts.PluginVTIconInstance != NULL) ? ts.PluginVTIconInstance : m_hInst; icon_id = (ts.PluginVTIconID != 0) ? ts.PluginVTIconID : (ts.VTIcon != IdIconDefault) ? ts.VTIcon : IDI_VT; - TTSetIcon(m_hInst, m_hWnd, MAKEINTRESOURCEW(icon_id), NewDPI); + TTSetIcon(inst, m_hWnd, MAKEINTRESOURCEW(icon_id), NewDPI); } return TRUE;