From 8a7d5cab0ef809adae010e54c2a89eed1770af42 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sun, 28 Dec 2014 06:38:29 +0300 Subject: [PATCH] Make example more demonstrative --- examples/ttf.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ttf.cc b/examples/ttf.cc index 1d55d6b..28d02f4 100644 --- a/examples/ttf.cc +++ b/examples/ttf.cc @@ -41,9 +41,9 @@ int Run() { Font font(TESTDATA_DIR "/Vera.ttf", 20); - Surface solid = font.RenderText_Solid("Hello, world!", SDL_Color({255, 255, 255, 255})); - Surface shaded = font.RenderText_Shaded("Hello, world!", SDL_Color({255, 255, 255, 255}), SDL_Color({127, 127, 127, 255})); - Surface blended = font.RenderText_Blended("Hello, world!", SDL_Color({255, 255, 255, 255})); + Surface solid = font.RenderText_Solid("Hello, world! (solid mode)", SDL_Color({255, 255, 255, 255})); + Surface shaded = font.RenderText_Shaded("Hello, world! (shaded mode)", SDL_Color({255, 255, 255, 255}), SDL_Color({127, 127, 127, 255})); + Surface blended = font.RenderText_Blended("Hello, world! (blended mode)", SDL_Color({255, 255, 255, 255})); Texture solid_tex(render, solid); Texture shaded_tex(render, shaded); @@ -57,7 +57,7 @@ int Run() { return 0; // Clear screen - render.SetDrawColor(0, 0, 0); + render.SetDrawColor(0, 63, 63); render.Clear(); // Render 3 strings