From 12400ceeddda367bc8358cea67cd37e32ba17c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20R=C4=99bacz?= Date: Sat, 28 Oct 2023 21:30:08 +0200 Subject: [PATCH] .cosmetic --- tutorial/Gui23/main.cpp | 2 +- uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/Gui23/main.cpp b/tutorial/Gui23/main.cpp index e51330618..e924eac4a 100644 --- a/tutorial/Gui23/main.cpp +++ b/tutorial/Gui23/main.cpp @@ -23,7 +23,7 @@ struct RandomRectCtrl : public Ctrl { int y = Random() % (sz.cy - length); rect = Rect(x, y, x + length, y + length); - color = Color(Random() % 255, Random() % 255, Random() % 255); + color = Color(Random() % 256, Random() % 256, Random() % 256); } }; diff --git a/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp b/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp index 050256492..32ec87a78 100644 --- a/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp +++ b/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp @@ -1800,8 +1800,8 @@ Ctrl `{]&] [s0;l320;%- [C rect ][C@(0.0.255) `=][C Rect(x, y, x ][C@(0.0.255) `+][C length, y ][C@(0.0.255) `+][C length);]&] [s0;l320;%- [C color ][C@(0.0.255) `=][C Color(Random() ][C@(0.0.255) %][C -][C@3 255][C , Random() ][C@(0.0.255) %][C ][C@3 255][C , Random() ][C@(0.0.255) %][C -][C@3 255][C );]&] +][C@3 256][C , Random() ][C@(0.0.255) %][C ][C@3 256][C , Random() ][C@(0.0.255) %][C +][C@3 256][C );]&] [s0;l320;%- [C `}]&] [s0;l320;%- [C `};]&] [s0;l320;C%- &]