Commit c9eaf2c7021498851fe845b6d8fab86b508c4023
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 | 957 | int max = (h3270.maxROWS * h3270.maxCOLS); |
958 | 958 | int pos = 0; |
959 | 959 | int f; |
960 | + int fg = COLOR_BLUE; | |
960 | 961 | |
961 | 962 | Trace("%s begins",__FUNCTION__); |
962 | 963 | for(f=0;f<max;f++) |
... | ... | @@ -964,9 +965,14 @@ LIB3270_ACTION( testpattern ) |
964 | 965 | if(!pat[row].cc[pos]) |
965 | 966 | { |
966 | 967 | if(++row >= (sizeof(pat)/sizeof(struct _pat)) ) |
968 | + { | |
967 | 969 | row = 0; |
970 | + if(++fg > COLOR_WHITE) | |
971 | + fg = COLOR_BLUE; | |
972 | + } | |
968 | 973 | pos = 0; |
969 | 974 | } |
975 | + ea_buf[f].fg = fg; | |
970 | 976 | ea_buf[f].cs = pat[row].cs; |
971 | 977 | ea_buf[f].cc = pat[row].cc[pos++]; |
972 | 978 | } | ... | ... |