mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
Examples: Removed unused variable in Clock example.
git-svn-id: svn://ultimatepp.org/upp/trunk@12940 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
566d9c0a13
commit
dab5db8fa6
1 changed files with 0 additions and 1 deletions
|
|
@ -27,7 +27,6 @@ struct App : TopWindow {
|
||||||
w.DrawEllipse(0, 0, sz.cx, sz.cy, SWhite, 3, SBlack);
|
w.DrawEllipse(0, 0, sz.cx, sz.cy, SWhite, 3, SBlack);
|
||||||
Font fnt = Arial(min(sz.cx, sz.cy) / 10);
|
Font fnt = Arial(min(sz.cx, sz.cy) / 10);
|
||||||
for(int i = 1; i <= 12; i++) {
|
for(int i = 1; i <= 12; i++) {
|
||||||
int d = i % 3 == 0 ? 3 : 2;
|
|
||||||
PaintCenteredText(w, sz2.cx + int(0.8 * sin(i * M_PI / 6) * sz2.cx),
|
PaintCenteredText(w, sz2.cx + int(0.8 * sin(i * M_PI / 6) * sz2.cx),
|
||||||
sz2.cy - int(0.8 * cos(i * M_PI / 6) * sz2.cy),
|
sz2.cy - int(0.8 * cos(i * M_PI / 6) * sz2.cy),
|
||||||
AsString(i), i % 3 ? fnt : fnt().Bold(), SBlack);
|
AsString(i), i % 3 ? fnt : fnt().Bold(), SBlack);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue