diff --git a/examples/AddressBook/init b/examples/AddressBook/init new file mode 100644 index 000000000..3f6bf9b8c --- /dev/null +++ b/examples/AddressBook/init @@ -0,0 +1,5 @@ +#ifndef _AddressBook_icpp_init_stub +#define _AddressBook_icpp_init_stub +#include "CtrlLib/init" +#include "Report/init" +#endif diff --git a/examples/Bombs/main.cpp b/examples/Bombs/main.cpp index 828f4051c..26616ff51 100644 --- a/examples/Bombs/main.cpp +++ b/examples/Bombs/main.cpp @@ -99,7 +99,7 @@ void Bombs::Paint(Draw& w) } } else - if(!(f & HIDDEN)) + if(!(f & HIDDEN)) { if(f & BOMB) txt = "B"; else { @@ -107,6 +107,7 @@ void Bombs::Paint(Draw& w) txt = String(f + '0', 1); ink = f == 0 ? SLtGreen : f == 1 ? SLtBlue : SBlack; } + } Size tsz = GetTextSize(txt, Roman(2 * UNIT / 3)); w.DrawText(x * UNIT + (UNIT - tsz.cx) / 2, y * UNIT + (UNIT - tsz.cy) / 2, txt, Roman(2 * UNIT / 3), ink);