• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision7682 (tree)
Time2019-05-15 23:28:32
Authorzmatsuo

Log Message

GetDesktopRect()と同じ処理があったので関数を呼ぶようにした

Change Summary

Incremental Difference

--- trunk/teraterm/teraterm/vtdisp.c (revision 7681)
+++ trunk/teraterm/teraterm/vtdisp.c (revision 7682)
@@ -3854,26 +3854,12 @@
38543854
38553855 void DispGetRootWinSize(int *x, int *y, BOOL inPixels)
38563856 {
3857- HMODULE mod;
3858- HMONITOR monitor;
3859- MONITORINFO monitorInfo;
38603857 RECT desktop, win, client;
38613858
38623859 GetWindowRect(HVTWin, &win);
38633860 GetClientRect(HVTWin, &client);
38643861
3865- if (((mod = GetModuleHandle("user32.dll")) != NULL) &&
3866- (GetProcAddress(mod,"MonitorFromWindow") != NULL)) {
3867- // マルチモニタがサポートされている場合
3868- monitor = MonitorFromWindow(HVTWin, MONITOR_DEFAULTTONEAREST);
3869- monitorInfo.cbSize = sizeof(MONITORINFO);
3870- GetMonitorInfo(monitor, &monitorInfo);
3871- desktop = monitorInfo.rcWork;
3872- }
3873- else {
3874- // マルチモニタがサポートされていない場合
3875- SystemParametersInfo(SPI_GETWORKAREA, 0, &desktop, 0);
3876- }
3862+ GetDesktopRect(HVTWin, &desktop);
38773863
38783864 if (inPixels) {
38793865 *x = desktop.right - desktop.left;
@@ -3883,8 +3869,6 @@
38833869 *x = (desktop.right - desktop.left - (win.right - win.left - client.right)) / FontWidth;
38843870 *y = (desktop.bottom - desktop.top - (win.bottom - win.top - client.bottom)) / FontHeight;
38853871 }
3886-
3887- return;
38883872 }
38893873
38903874 int DispFindClosestColor(int red, int green, int blue)
Show on old repository browser