Revision: 7652 https://osdn.net/projects/ttssh2/scm/svn/commits/7652 Author: zmatsuo Date: 2019-05-08 01:45:58 +0900 (Wed, 08 May 2019) Log Message: ----------- DWORD型であるべき変数を修正、ファイル内参照のみの関数にstaticを追加 Modified Paths: -------------- trunk/teraterm/teraterm/vtdisp.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtdisp.c =================================================================== --- trunk/teraterm/teraterm/vtdisp.c 2019-05-07 10:23:51 UTC (rev 7651) +++ trunk/teraterm/teraterm/vtdisp.c 2019-05-07 16:45:58 UTC (rev 7652) @@ -544,13 +544,13 @@ // \x89摜\x93ǂݍ\x9E\x82݊W -void BGPreloadPicture(BGSrc *src) +static void BGPreloadPicture(BGSrc *src) { char spiPath[MAX_PATH]; char filespec[MAX_PATH]; char *filePart; int fileSize; - int readByte; + DWORD readByte; unsigned char *fileBuf; HBITMAP hbm; @@ -654,9 +654,9 @@ } } -void BGGetWallpaperInfo(WallpaperInfo *wi) +static void BGGetWallpaperInfo(WallpaperInfo *wi) { - int length; + DWORD length; int style; int tile; char str[256]; @@ -868,7 +868,7 @@ return hbmNew; } -void BGPreloadWallpaper(BGSrc *src) +static void BGPreloadWallpaper(BGSrc *src) { HBITMAP hbm; WallpaperInfo wi; @@ -972,7 +972,7 @@ src->color = GetSysColor(COLOR_DESKTOP); } -void BGPreloadSrc(BGSrc *src) +static void BGPreloadSrc(BGSrc *src) { DeleteBitmapDC(&(src->hdc)); @@ -991,7 +991,7 @@ } } -void BGStretchPicture(HDC hdcDest,BGSrc *src,int x,int y,int width,int height,BOOL bAntiAlias) +static void BGStretchPicture(HDC hdcDest,BGSrc *src,int x,int y,int width,int height,BOOL bAntiAlias) { if(!hdcDest || !src) return; @@ -1028,7 +1028,7 @@ } } -void BGLoadPicture(HDC hdcDest,BGSrc *src) +static void BGLoadPicture(HDC hdcDest,BGSrc *src) { int x,y,width,height,pattern; HDC hdc = NULL; @@ -1091,7 +1091,7 @@ BGSrc *src; }LoadWallpaperStruct; -BOOL CALLBACK BGLoadWallpaperEnumFunc(HMONITOR hMonitor,HDC hdcMonitor,LPRECT lprcMonitor,LPARAM dwData) +static BOOL CALLBACK BGLoadWallpaperEnumFunc(HMONITOR hMonitor,HDC hdcMonitor,LPRECT lprcMonitor,LPARAM dwData) { RECT rectDest; RECT rectRgn; @@ -1196,7 +1196,7 @@ SetWindowOrgEx(hdcDest,0,0,NULL); } -void BGLoadSrc(HDC hdcDest,BGSrc *src) +static void BGLoadSrc(HDC hdcDest,BGSrc *src) { switch(src->type) { @@ -1283,7 +1283,7 @@ } } -COLORREF BGGetColor(char *name,COLORREF defcolor,char *file) +static COLORREF BGGetColor(char *name,COLORREF defcolor,char *file) { unsigned int r,g,b; char colorstr[256],defstr[256]; @@ -1299,7 +1299,7 @@ return RGB(r,g,b); } -BG_PATTERN BGGetStrIndex(char *name,BG_PATTERN def,char *file,char **strList,int nList) +static BG_PATTERN BGGetStrIndex(char *name,BG_PATTERN def,char *file,char **strList,int nList) { char defstr[64],str[64]; int i;