From e448348db9a048b3add23ee8a89ec3872c5634b8 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 22 Sep 2012 08:00:15 +0000 Subject: [PATCH] reference/WebImage: Changed to use HttpRequest git-svn-id: svn://ultimatepp.org/upp/trunk@5380 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- reference/WebImage/main.cpp | 43 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/reference/WebImage/main.cpp b/reference/WebImage/main.cpp index 0b60f1bba..66c757110 100644 --- a/reference/WebImage/main.cpp +++ b/reference/WebImage/main.cpp @@ -1,22 +1,21 @@ -#include -#include - -using namespace Upp; - -struct MyApp : TopWindow { - Image img; - - virtual void Paint(Draw& w) { - w.DrawRect(GetSize(), Gray()); - w.DrawImage(0, 0, img); - } - - MyApp() { - img = StreamRaster::LoadStringAny(HttpClientGet("http://www.ultimatepp.org/1i.png")); - } -}; - -GUI_APP_MAIN -{ - MyApp().Run(); -} +#include + +using namespace Upp; + +struct MyApp : TopWindow { + Image img; + + virtual void Paint(Draw& w) { + w.DrawRect(GetSize(), Gray()); + w.DrawImage(0, 0, img); + } + + MyApp() { + img = StreamRaster::LoadStringAny(HttpRequest("http://www.ultimatepp.org/1i.png").Execute()); + } +}; + +GUI_APP_MAIN +{ + MyApp().Run(); +}