.examples

git-svn-id: svn://ultimatepp.org/upp/trunk@8205 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-02-24 12:17:48 +00:00
parent ac55e67371
commit d9ca642f60
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
#ifndef _AddressBook_icpp_init_stub
#define _AddressBook_icpp_init_stub
#include "CtrlLib/init"
#include "Report/init"
#endif

View file

@ -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);