Mercurial > hg > orthanc-stone
comparison Framework/Widgets/TestCairoWidget.cpp @ 46:766d31dc5716 wasm
removing threads for wasm
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Apr 2017 14:33:06 +0200 |
parents | 7207a407bcd8 |
children | 25befef48c35 |
comparison
equal
deleted
inserted
replaced
45:ecd96e563929 | 46:766d31dc5716 |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #include "TestCairoWidget.h" | 34 #include "TestCairoWidget.h" |
35 | 35 |
36 #include "../../Resources/Orthanc/Core/SystemToolbox.h" | |
37 | |
38 #include <stdio.h> | 36 #include <stdio.h> |
39 | 37 |
40 | 38 |
41 namespace OrthancStone | 39 namespace OrthancStone |
42 { | 40 { |
43 namespace Samples | 41 namespace Samples |
44 { | 42 { |
45 void TestCairoWidget::UpdateStep() | 43 void TestCairoWidget::UpdateContent() |
46 { | 44 { |
47 value_ -= 0.01f; | 45 value_ -= 0.01f; |
48 if (value_ < 0) | 46 if (value_ < 0) |
49 { | 47 { |
50 value_ = 1; | 48 value_ = 1; |
51 } | 49 } |
52 | 50 |
53 NotifyChange(); | 51 NotifyChange(); |
54 | |
55 Orthanc::SystemToolbox::USleep(25000); | |
56 } | 52 } |
57 | 53 |
58 | 54 |
59 bool TestCairoWidget::RenderCairo(CairoContext& context) | 55 bool TestCairoWidget::RenderCairo(CairoContext& context) |
60 { | 56 { |