[ttssh2-commit] [10376] Revert r10375

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 11月 20日 (日) 23:22:46 JST


Revision: 10376
          https://osdn.net/projects/ttssh2/scm/svn/commits/10376
Author:   zmatsuo
Date:     2022-11-20 23:22:46 +0900 (Sun, 20 Nov 2022)
Log Message:
-----------
Revert r10375

- 誤って手元のテストブランチをコミットしたためリバート

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/10375

Modified Paths:
--------------
    trunk/teraterm/keycode/CMakeLists.txt
    trunk/teraterm/keycode/keycode.c

-------------- next part --------------
Modified: trunk/teraterm/keycode/CMakeLists.txt
===================================================================
--- trunk/teraterm/keycode/CMakeLists.txt	2022-11-20 14:18:40 UTC (rev 10375)
+++ trunk/teraterm/keycode/CMakeLists.txt	2022-11-20 14:22:46 UTC (rev 10376)
@@ -9,9 +9,6 @@
   keycode-version.rc
   keycode.rc
   kc_res.h
-  #
-  image_gdiplus.cpp
-  image_gdiplus.h
   )
 
 if(SUPPORT_OLD_WINDOWS)
@@ -72,9 +69,6 @@
   keycode-version.rc
   keycode.rc
   kc_res.h
-  #
-  image_gdiplus.cpp
-  image_gdiplus.h
   )
 
 if(SUPPORT_OLD_WINDOWS)

Modified: trunk/teraterm/keycode/keycode.c
===================================================================
--- trunk/teraterm/keycode/keycode.c	2022-11-20 14:18:40 UTC (rev 10375)
+++ trunk/teraterm/keycode/keycode.c	2022-11-20 14:22:46 UTC (rev 10376)
@@ -36,7 +36,6 @@
 
 #include "compat_win.h"
 #include "dlglib.h"
-#include "image_gdiplus.h"
 
 #include "kc_res.h"
 #define ClassName _T("KeyCodeWin32")
@@ -49,7 +48,6 @@
 static BOOL KeyDown = FALSE;
 static BOOL Short;
 static WORD Scan;
-static HBITMAP hBmp = NULL;
 
 int WINAPI WinMain(HINSTANCE hInstance,
                    HINSTANCE hPrevInstance,
@@ -121,8 +119,6 @@
 	                    hInstance,
 	                    NULL);
 
-	ImageInit();
-
 	ShowWindow(hWnd, nCmdShow);
 
 	TTSetIcon(hInstance, hWnd, MAKEINTRESOURCEW(IDI_KEYCODE), 0);
@@ -186,15 +182,6 @@
 
 	hDC = BeginPaint(hWnd, &ps);
 
-	{
-		HBITMAP hPrevBMP;
-		HDC memDC = CreateCompatibleDC(hDC);
-		hPrevBMP = SelectObject(memDC, hBmp);
-		StretchBlt(hDC,0,0,100,100, memDC, 0, 0, 100, 100 ,SRCCOPY);
-		SelectObject(memDC, hPrevBMP);
-		DeleteObject(memDC);
-	}
-
 	if (KeyDown) {
 		_snprintf_s(OutStr,sizeof(OutStr),_TRUNCATE,"Key code is %u.",Scan);
 		TextOutA(hDC,10,10,OutStr, (int)strlen(OutStr));


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