]> O.S.I.I.S - jp/crow.git/commitdiff
clipping test in top container
authorjpbruyere <jp.bruyere@hotmail.com>
Sat, 13 Feb 2016 13:34:18 +0000 (14:34 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Sat, 13 Feb 2016 13:34:18 +0000 (14:34 +0100)
src/OpenTKGameWindow.cs

index a9d047148545d5981ad137a2e78dfc8d5eb9ee5b..013f2eea4ffa59dbeeeddee636fdd9a35b7fb65e 100644 (file)
@@ -309,7 +309,8 @@ namespace Crow
                                                foreach (GraphicObject p in invGOList) {
                                                        if (!p.Visible)
                                                                continue;
-
+                                                       if (!clipping.intersect (p.Slot))
+                                                               continue;
                                                        ctx.Save ();
 
                                                        p.Paint (ref ctx);