From 61aeb72522c4ad315fed13d8ddd3d73f7a21bc2a Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sun, 28 Jun 2015 10:23:42 +0200 Subject: [PATCH] * OpenTK: * GOLIBTest_4.cs: fps in pgbar * test4.goml: tests * CompilerServices.cs: check null src value --- Tests/GOLIBTest_4.cs | 15 +++++++-------- Tests/Interfaces/test4.goml | 12 +++++++----- src/CompilerServices/CompilerServices.cs | 6 ++++-- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Tests/GOLIBTest_4.cs b/Tests/GOLIBTest_4.cs index 5b421100..3fb79fff 100644 --- a/Tests/GOLIBTest_4.cs +++ b/Tests/GOLIBTest_4.cs @@ -88,7 +88,7 @@ namespace test //c2.VerticalAlignment = VerticalAlignment.Top; c.Background.AdjustAlpha (0.5); labMousePos = c.FindByName ("labMouse") as Label; - pb = c.FindByName("pbBar") as ProgressBar; + //pb = c.FindByName("pbBar") as ProgressBar; pb2 = c.FindByName("pbBar2") as ProgressBar; labPb = c.FindByName ("labPb") as Label; labF = c.FindByName ("labFocus") as Label; @@ -135,8 +135,8 @@ namespace test } ); i++; - if (i > 250) - break; +// if (i > 150) +// break; } ValueChanged.Raise(this, new ValueChangeEventArgs ("TestList", TestList)); } @@ -171,11 +171,10 @@ namespace test } frameCpt++; - if (pb.Value == pb.Maximum) - pb.Value = 0; - pb.Value++; - pb2.Value = pb.Value; - //labPb.Text = pb.Value.ToString (); + if (pb2.Value == pb2.Maximum) + pb2.Value = 0; + pb2.Value++; + if (FocusedWidget==null) labF.Text = "- none -"; else diff --git a/Tests/Interfaces/test4.goml b/Tests/Interfaces/test4.goml index c468aef2..ec4251fe 100755 --- a/Tests/Interfaces/test4.goml +++ b/Tests/Interfaces/test4.goml @@ -48,15 +48,15 @@ -