Commit c9eaf2c7021498851fe845b6d8fab86b508c4023

Authored by perry.werneck@gmail.com
1 parent 9a33a2fa
Exists in master

Incluindo cores no padrao de teste

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
latest/src/lib/screen.c
@@ -957,6 +957,7 @@ LIB3270_ACTION( testpattern ) @@ -957,6 +957,7 @@ LIB3270_ACTION( testpattern )
957 int max = (h3270.maxROWS * h3270.maxCOLS); 957 int max = (h3270.maxROWS * h3270.maxCOLS);
958 int pos = 0; 958 int pos = 0;
959 int f; 959 int f;
  960 + int fg = COLOR_BLUE;
960 961
961 Trace("%s begins",__FUNCTION__); 962 Trace("%s begins",__FUNCTION__);
962 for(f=0;f<max;f++) 963 for(f=0;f<max;f++)
@@ -964,9 +965,14 @@ LIB3270_ACTION( testpattern ) @@ -964,9 +965,14 @@ LIB3270_ACTION( testpattern )
964 if(!pat[row].cc[pos]) 965 if(!pat[row].cc[pos])
965 { 966 {
966 if(++row >= (sizeof(pat)/sizeof(struct _pat)) ) 967 if(++row >= (sizeof(pat)/sizeof(struct _pat)) )
  968 + {
967 row = 0; 969 row = 0;
  970 + if(++fg > COLOR_WHITE)
  971 + fg = COLOR_BLUE;
  972 + }
968 pos = 0; 973 pos = 0;
969 } 974 }
  975 + ea_buf[f].fg = fg;
970 ea_buf[f].cs = pat[row].cs; 976 ea_buf[f].cs = pat[row].cs;
971 ea_buf[f].cc = pat[row].cc[pos++]; 977 ea_buf[f].cc = pat[row].cc[pos++];
972 } 978 }