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%- &]