[ttssh2-commit] [9992] ソース整理

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 6月 11日 (土) 00:19:42 JST


Revision: 9992
          https://osdn.net/projects/ttssh2/scm/svn/commits/9992
Author:   zmatsuo
Date:     2022-06-11 00:19:42 +0900 (Sat, 11 Jun 2022)
Log Message:
-----------
ソース整理

- ファイル内だけで使用している関数に static を追加
- BGFillRect() グローバル変数を使用しないよう修正
- 未使用関数削除
  - GetProcAddressWithDllName()

Modified Paths:
--------------
    trunk/teraterm/teraterm/vtdisp.c

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2022-06-10 15:19:33 UTC (rev 9991)
+++ trunk/teraterm/teraterm/vtdisp.c	2022-06-10 15:19:42 UTC (rev 9992)
@@ -333,18 +333,6 @@
   DeleteObject(hBrush);
 }
 
-FARPROC GetProcAddressWithDllName(char *dllName,char *procName)
-{
-  HINSTANCE hDll;
-
-  hDll = LoadLibrary(dllName);
-
-  if(hDll)
-    return GetProcAddress(hDll,procName);
-  else
-    return 0;
-}
-
 static void RandomFile(const char *filespec_src,char *filename, int destlen)
 {
   int    i;
@@ -1342,7 +1330,7 @@
 	BGReadTextColorConfig(file);
 }
 
-void BGDestruct(void)
+static void BGDestruct(void)
 {
   if(!BGEnable)
     return;
@@ -1566,15 +1554,15 @@
 //    BGReverseText = !BGReverseText;
 }
 
-void BGFillRect(HDC hdc,RECT *R,HBRUSH brush)
+static void BGFillRect(HDC hdc, RECT *R, HBRUSH brush)
 {
-  if(!BGEnable)
-    FillRect(hdc,R,brush);
-  else
-    BitBlt(VTDC,R->left,R->top,R->right - R->left,R->bottom - R->top,hdcBG,R->left,R->top,SRCCOPY);
+	if (!BGEnable)
+		FillRect(hdc, R, brush);
+	else
+		BitBlt(hdc, R->left, R->top, R->right - R->left, R->bottom - R->top, hdcBG, R->left, R->top, SRCCOPY);
 }
 
-void BGScrollWindow(HWND hwnd, int xa, int ya, RECT *Rect, RECT *ClipRect)
+static void BGScrollWindow(HWND hwnd, int xa, int ya, RECT *Rect, RECT *ClipRect)
 {
 	RECT r;
 


ttssh2-commit メーリングリストの案内
Back to archive index