Revision: 10024 https://osdn.net/projects/ttssh2/scm/svn/commits/10024 Author: zmatsuo Date: 2022-06-26 01:15:08 +0900 (Sun, 26 Jun 2022) Log Message: ----------- テーマのデータ部分を bg_theme.h へ移動 Modified Paths: -------------- branches/theme/teraterm/teraterm/CMakeLists.txt branches/theme/teraterm/teraterm/vtdisp.c Added Paths: ----------- branches/theme/teraterm/teraterm/bg_theme.h -------------- next part -------------- Modified: branches/theme/teraterm/teraterm/CMakeLists.txt =================================================================== --- branches/theme/teraterm/teraterm/CMakeLists.txt 2022-06-25 16:14:58 UTC (rev 10023) +++ branches/theme/teraterm/teraterm/CMakeLists.txt 2022-06-25 16:15:08 UTC (rev 10024) @@ -11,6 +11,7 @@ ${PACKAGE_NAME} WIN32 addsetting.cpp addsetting.h + bg_theme.h broadcast.cpp broadcast.h buffer.c Added: branches/theme/teraterm/teraterm/bg_theme.h =================================================================== --- branches/theme/teraterm/teraterm/bg_theme.h (rev 0) +++ branches/theme/teraterm/teraterm/bg_theme.h 2022-06-25 16:15:08 UTC (rev 10024) @@ -0,0 +1,63 @@ +/* + * Copyright (C) 1994-1998 T. Teranishi + * (C) 2008- TeraTerm Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#pragma once + +#include <windows.h> + +typedef enum _BG_TYPE { BG_COLOR = 0, BG_PICTURE, BG_WALLPAPER } BG_TYPE; +typedef enum _BG_PATTERN { + BG_STRETCH = 0, + BG_TILE, + BG_CENTER, + BG_FIT_WIDTH, + BG_FIT_HEIGHT, + BG_AUTOFIT, + BG_AUTOFILL +} BG_PATTERN; + +typedef struct _BGSrc { + HDC hdc; + BG_TYPE type; + BG_PATTERN pattern; + BOOL antiAlias; + COLORREF color; + int alpha; + int width; + int height; + char file[MAX_PATH]; + char fileTmp[MAX_PATH]; +} BGSrc; + +typedef struct _BGTheme { + BGSrc BGDest; + BGSrc BGSrc1; + BGSrc BGSrc2; + int BGReverseTextAlpha; +} BGTheme; Modified: branches/theme/teraterm/teraterm/vtdisp.c =================================================================== --- branches/theme/teraterm/teraterm/vtdisp.c 2022-06-25 16:14:58 UTC (rev 10023) +++ branches/theme/teraterm/teraterm/vtdisp.c 2022-06-25 16:15:08 UTC (rev 10024) @@ -148,6 +148,9 @@ #include <stdio.h> #include <time.h> +#include "bg_theme.h" + +#if 0 typedef enum _BG_TYPE {BG_COLOR = 0,BG_PICTURE,BG_WALLPAPER} BG_TYPE; typedef enum _BG_PATTERN {BG_STRETCH = 0,BG_TILE,BG_CENTER,BG_FIT_WIDTH,BG_FIT_HEIGHT,BG_AUTOFIT,BG_AUTOFILL} BG_PATTERN; @@ -164,6 +167,7 @@ char file[MAX_PATH]; char fileTmp[MAX_PATH]; }BGSrc; +#endif static BGSrc BGDest; static BGSrc BGSrc1;