From d657a09759ae6851894f3114772b33bd457238fd Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 27 Nov 2007 09:04:54 +0000 Subject: [PATCH] * Use the bigger font for the C# test scroller. --- csharp/test.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/csharp/test.cs b/csharp/test.cs index 30ebc02..52c48ba 100644 --- a/csharp/test.cs +++ b/csharp/test.cs @@ -33,13 +33,13 @@ class DemoCanvas : CuculCanvas { startTime = DateTime.Now; - string message = "LIBCACA *** 100% PURE WIN *** "; + string message = "POWERED BY LIBCACA --- OLDSCHOOL TEXT EFFECTS ARE 100% PURE WIN --- "; scroll = new CuculCanvas(new Size(message.Length, 1)); scroll.setColorAnsi(Libcucul.WHITE, Libcucul.BLACK); scroll.putStr(new Point(0, 0), message); - CuculFont f = new CuculFont(CuculFont.getList()[0]); + CuculFont f = new CuculFont(CuculFont.getList()[1]); int w = f.Size.Width * message.Length; int h = f.Size.Height; image = new uint[w, h]; @@ -57,10 +57,10 @@ class DemoCanvas : CuculCanvas int w = Size.Width; int h = Size.Height; - int x = (int)(t / 10) % (6 * w); + int x = (int)(t / 10) % (12 * w); int y = (int)(h * (2.0 + Math.Sin(t / 200.0)) / 4); - ditherBitmap(new Rectangle(- x, h / 2 - y, w * 6, y * 2), d, image); - ditherBitmap(new Rectangle(6 * w - x, h / 2 - y, w * 6, y * 2), d, image); + ditherBitmap(new Rectangle(- x, h / 2 - y, w * 12, y * 2), d, image); + ditherBitmap(new Rectangle(12 * w - x, h / 2 - y, w * 12, y * 2), d, image); setColorAnsi(Libcucul.WHITE, Libcucul.BLACK); for(int i = 0; i < barCount; i++)