mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.examples
git-svn-id: svn://ultimatepp.org/upp/trunk@8205 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ac55e67371
commit
d9ca642f60
2 changed files with 7 additions and 1 deletions
5
examples/AddressBook/init
Normal file
5
examples/AddressBook/init
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#ifndef _AddressBook_icpp_init_stub
|
||||
#define _AddressBook_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#include "Report/init"
|
||||
#endif
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue