X-Git-Url: https://git.bzium.org/embe/choinka.git/blobdiff_plain/e6c419ea3d0fa00bd36f4a1a5c08dae6479489bf..1f2928827d5fad5cc66cfd8e157f168997ab05c4:/choinka.c?ds=sidebyside diff --git a/choinka.c b/choinka.c index 05dc299..9c03183 100644 --- a/choinka.c +++ b/choinka.c @@ -37,6 +37,9 @@ char rysunek[] = void ustaw(atrybut const* attr) { + static atrybut ostatni = {-1, -1}; + if (ostatni.attr == attr->attr && ostatni.kolor == attr->kolor) return; + ostatni = *attr; if (attr->attr & A_BOLD) { putp(enter_bold_mode); } else {