• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revisão3715 (tree)
Hora2009-12-12 15:42:18
Autordoda

Mensagem de Log

Eterm look-feelを有効にしている時、Reverse Video (DECSCNM)のset/resetが行われると、以降まともに描画が更新されなくなるのを修正した。(暫定)
http://lunatear.net/archives/001056.html

# Eterm look-feel有効時のDECSCNMはまだちゃんと動いていないので、修正が必要

Mudança Sumário

Diff

--- trunk/teraterm/teraterm/vtdisp.c (revision 3714)
+++ trunk/teraterm/teraterm/vtdisp.c (revision 3715)
@@ -1278,6 +1278,37 @@
12781278 (FARPROC)BGEnumDisplayMonitors = GetProcAddressWithDllName("user32.dll","EnumDisplayMonitors");
12791279 }
12801280
1281+void BGExchangeColor() {
1282+ COLORREF ColorRef;
1283+ if (ts.ColorFlag & CF_REVERSECOLOR) {
1284+ ColorRef = BGVTColor[0];
1285+ BGVTColor[0] = BGVTReverseColor[0];
1286+ BGVTReverseColor[0] = ColorRef;
1287+ ColorRef = BGVTColor[1];
1288+ BGVTColor[1] = BGVTReverseColor[1];
1289+ BGVTReverseColor[1] = ColorRef;
1290+ }
1291+ else {
1292+ ColorRef = BGVTColor[0];
1293+ BGVTColor[0] = BGVTColor[1];
1294+ BGVTColor[1] = ColorRef;
1295+ }
1296+
1297+ ColorRef = BGVTBoldColor[0];
1298+ BGVTBoldColor[0] = BGVTBoldColor[1];
1299+ BGVTBoldColor[1] = ColorRef;
1300+
1301+ ColorRef = BGVTBlinkColor[0];
1302+ BGVTBlinkColor[0] = BGVTBlinkColor[1];
1303+ BGVTBlinkColor[1] = ColorRef;
1304+
1305+ ColorRef = BGURLColor[0];
1306+ BGURLColor[0] = BGURLColor[1];
1307+ BGURLColor[1] = ColorRef;
1308+
1309+// BGReverseText = !BGReverseText;
1310+}
1311+
12811312 void BGFillRect(HDC hdc,RECT *R,HBRUSH brush)
12821313 {
12831314 if(!BGEnable)
--- trunk/teraterm/teraterm/vtdisp.h (revision 3714)
+++ trunk/teraterm/teraterm/vtdisp.h (revision 3715)
@@ -12,6 +12,8 @@
1212 void BGInitialize(void);
1313 void BGSetupPrimary(BOOL);
1414
15+void BGExchangeColor(void);
16+
1517 void BGOnSettingChange(void);
1618 void BGOnEnterSizeMove(void);
1719 void BGOnExitSizeMove(void);
--- trunk/teraterm/teraterm/vtterm.c (revision 3714)
+++ trunk/teraterm/teraterm/vtterm.c (revision 3715)
@@ -2031,7 +2031,8 @@
20312031 ts.ColorFlag ^= CF_REVERSEVIDEO;
20322032
20332033 #ifdef ALPHABLEND_TYPE2
2034- BGInitialize();
2034+// BGInitialize();
2035+ BGExchangeColor();
20352036 #endif
20362037 DispChangeBackground();
20372038 UpdateWindow(HVTWin);
Show on old repository browser