From 6961bcd4d3466d0e0400a79c660a36bc001f9b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 17 Jan 2015 14:24:16 +0100 Subject: [PATCH] Platform: clarify comments. --- src/Magnum/Platform/ScreenedApplication.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/ScreenedApplication.hpp b/src/Magnum/Platform/ScreenedApplication.hpp index f7bad77d4..da2a7b139 100644 --- a/src/Magnum/Platform/ScreenedApplication.hpp +++ b/src/Magnum/Platform/ScreenedApplication.hpp @@ -75,7 +75,7 @@ template BasicScreenedApplication& BasicScreened template void BasicScreenedApplication::globalViewportEvent(const Vector2i&) {} template void BasicScreenedApplication::viewportEvent(const Vector2i& size) { - /* Call viewport event after all other (because of framebuffer resizing) */ + /* Call global event before all other (to resize framebuffer first) */ globalViewportEvent(size); for(BasicScreen& s: *this) s.viewportEvent(size); @@ -86,7 +86,7 @@ template void BasicScreenedApplication::drawEven for(BasicScreen* s = screens().last(); s; s = s->nextNearerScreen()) if(s->propagatedEvents() & Implementation::PropagatedScreenEvent::Draw) s->drawEvent(); - /* Call global event after all other (because of buffer swapping) */ + /* Call global event after all other (to swap buffers last) */ globalDrawEvent(); }