[Ttssh2-commit] [7645] dprintf()#vtdisp.c を OutputDebugPrintf()#ttlib.c に置換

scmno****@osdn***** scmno****@osdn*****
2019年 5月 6日 (月) 22:41:25 JST


Revision: 7645
          https://osdn.net/projects/ttssh2/scm/svn/commits/7645
Author:   zmatsuo
Date:     2019-05-06 22:41:25 +0900 (Mon, 06 May 2019)
Log Message:
-----------
dprintf()#vtdisp.c を OutputDebugPrintf()#ttlib.c に置換

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

-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtdisp.c
===================================================================
--- trunk/teraterm/teraterm/vtdisp.c	2019-05-06 13:41:16 UTC (rev 7644)
+++ trunk/teraterm/teraterm/vtdisp.c	2019-05-06 13:41:25 UTC (rev 7645)
@@ -210,20 +210,6 @@
 	return !IsWindowsVistaOrLater();
 }
 
-
-void dprintf(char *format, ...)
-{
-  va_list args;
-  char    buffer[1024];
-
-  va_start(args,format);
-
-  _vsnprintf_s(buffer,sizeof(buffer),_TRUNCATE,format,args);
-  strncat_s(buffer,sizeof(buffer),"\n",_TRUNCATE);
-
-  OutputDebugString(buffer);
-}
-
 HBITMAP CreateScreenCompatibleBitmap(int width,int height)
 {
   HDC     hdc;
@@ -230,7 +216,7 @@
   HBITMAP hbm;
 
   #ifdef _DEBUG
-    dprintf("CreateScreenCompatibleBitmap : width = %d height = %d",width,height);
+    OutputDebugPrintf("CreateScreenCompatibleBitmap : width = %d height = %d\n",width,height);
   #endif
 
   hdc = GetDC(NULL);
@@ -241,7 +227,7 @@
 
   #ifdef _DEBUG
     if(!hbm)
-      dprintf("CreateScreenCompatibleBitmap : fail in CreateCompatibleBitmap");
+      OutputDebugPrintf("CreateScreenCompatibleBitmap : fail in CreateCompatibleBitmap\n");
   #endif
 
   return hbm;
@@ -254,7 +240,7 @@
   BITMAPINFO bmi;
 
   #ifdef _DEBUG
-    dprintf("CreateDIB24BPP : width = %d height = %d",width,height);
+    OutputDebugPrintf("CreateDIB24BPP : width = %d height = %d\n",width,height);
   #endif
 
   if(!width || !height)
@@ -286,7 +272,7 @@
   HDC hdc;
 
   #ifdef _DEBUG
-    dprintf("CreateBitmapDC : hbm = %x",hbm);
+    OutputDebugPrintf("CreateBitmapDC : hbm = %p\n",hbm);
   #endif
 
   hdc = CreateCompatibleDC(NULL);
@@ -302,7 +288,7 @@
   HBITMAP hbm;
 
   #ifdef _DEBUG
-    dprintf("DeleteBitmapDC : *hdc = %x",hdc);
+    OutputDebugPrintf("DeleteBitmapDC : *hdc = %p\n",hdc);
   #endif
 
   if(!hdc)
@@ -328,7 +314,7 @@
   HBRUSH  hBrush;
 
   #ifdef _DEBUG
-    dprintf("FillBitmapDC : hdc = %x color = %x",hdc,color);
+    OutputDebugPrintf("FillBitmapDC : hdc = %x color = %p\n",hdc,color);
   #endif
 
   if(!hdc)
@@ -573,7 +559,7 @@
   WIN32_FIND_DATA fd;
 
   #ifdef _DEBUG
-    dprintf("Preload Picture : %s",src->file);
+    OutputDebugPrintf("Preload Picture : %s\n",src->file);
   #endif
 
   //\x83t\x83@\x83C\x83\x8B\x82\xF0\x93ǂݍ\x9E\x82\xDE
@@ -1250,7 +1236,7 @@
   CopyRect(&BGPrevRect,&rect);
 
   #ifdef _DEBUG
-    dprintf("BGSetupPrimary : BGInSizeMove = %d",BGInSizeMove);
+    OutputDebugPrintf("BGSetupPrimary : BGInSizeMove = %d\n",BGInSizeMove);
   #endif
 
   //\x8D\xEC\x8BƗp DC \x8D쐬


Ttssh2-commit メーリングリストの案内