aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-19 15:01:10 +0000
committerJohannes Schickel2008-05-19 15:01:10 +0000
commit40734a8d6c90d02655f6c5b32471eef5c1e44af9 (patch)
tree62d3dd3d3b75991b9a5dc485b3b54d8e2c7acfa9 /graphics
parent985aa6a84617d67e2a2970470b71aff2932288f6 (diff)
downloadscummvm-rg350-40734a8d6c90d02655f6c5b32471eef5c1e44af9.tar.gz
scummvm-rg350-40734a8d6c90d02655f6c5b32471eef5c1e44af9.tar.bz2
scummvm-rg350-40734a8d6c90d02655f6c5b32471eef5c1e44af9.zip
Made test render function a bit more responsive for backend events.
svn-id: r32180
Diffstat (limited to 'graphics')
-rw-r--r--graphics/VectorRenderer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp
index d626c2aa51..9a10428b64 100644
--- a/graphics/VectorRenderer.cpp
+++ b/graphics/VectorRenderer.cpp
@@ -60,7 +60,8 @@ void vector_renderer_test(OSystem *_system) {
_system->showOverlay();
- while (true) { // draw!!
+ bool running = true;
+ while (running) { // draw!!
vr->setFgColor(255, 0, 206);
vr->setGradientFactor(1);
vr->setGradientColors(214, 113, 8, 240, 200, 25);
@@ -87,8 +88,9 @@ void vector_renderer_test(OSystem *_system) {
Common::Event event;
_system->delayMillis(100);
- if (eventMan->pollEvent(event) && event.type == Common::EVENT_QUIT) {
- break;
+ while (eventMan->pollEvent(event)) {
+ if (event.type == Common::EVENT_QUIT)
+ running = false;
}
}