From d9ca642f60ff4ce8ef8ffb8cc2b5cf4cac390484 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 24 Feb 2015 12:17:48 +0000 Subject: [PATCH] .examples git-svn-id: svn://ultimatepp.org/upp/trunk@8205 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- examples/AddressBook/init | 5 +++++ examples/Bombs/main.cpp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 examples/AddressBook/init 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);